Dear list, I have the following sample: \setupindenting[yes, big] \starttext \starttyping[option=parsed-xml] <code> <text> <body> <p>word</p> </body> </text> </code> \stoptyping \stoptext I’m afraid I found two issues: For some reason, ConTeXt adds extra space before the last line. I think this may be a bug. With indenting set for the rest of the document, ConTeXt applies it also to typing. As far as I know, typing shouldn’t be automatically indented. Could anyone confirm whether the issues are bugs in parsed-xml? Many thanks for your help, Pablo -- http://www.ousia.tk
On 11/1/2016 1:38 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\setupindenting[yes, big] \starttext \starttyping[option=parsed-xml] <code> <text> <body> <p>word</p> </body> </text> </code> \stoptyping \stoptext
I’m afraid I found two issues:
For some reason, ConTeXt adds extra space before the last line. I think this may be a bug.
With indenting set for the rest of the document, ConTeXt applies it also to typing. As far as I know, typing shouldn’t be automatically indented.
Could anyone confirm whether the issues are bugs in parsed-xml?
you can test with local verbosed = (space + newline * (emptyline^0) * beginline + newline * emptyline + newline + anything)^0 in line 557 in buff-ver.lua ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 11/01/2016 08:47 PM, Hans Hagen wrote:
[...] you can test with
local verbosed = (space + newline * (emptyline^0) * beginline + newline * emptyline + newline + anything)^0
in line 557 in buff-ver.lua
Hans, many thanks for your fast fix. It works for extra lines, but indenting is still applied (I cannot see why this might make sense). Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez