![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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