[NTG-context] bug in parsed-xml?

Hans Hagen pragma at wxs.nl
Tue Nov 1 20:47:19 CET 2016


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
-----------------------------------------------------------------


More information about the ntg-context mailing list