ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in parsed-xml?
@ 2016-11-01 12:38 Pablo Rodriguez
  2016-11-01 19:47 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2016-11-01 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \setupindenting[yes, big]
    \starttext
    \starttyping[option=parsed-xml]
    <code>
    &lt;text&gt;
      &lt;body&gt;
        &lt;p&gt;word&lt;/p&gt;
      &lt;/body&gt;
    &lt;/text&gt;
    </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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug in parsed-xml?
  2016-11-01 12:38 bug in parsed-xml? Pablo Rodriguez
@ 2016-11-01 19:47 ` Hans Hagen
  2016-11-01 20:08   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2016-11-01 19:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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>
>     &lt;text&gt;
>       &lt;body&gt;
>         &lt;p&gt;word&lt;/p&gt;
>       &lt;/body&gt;
>     &lt;/text&gt;
>     </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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bug in parsed-xml?
  2016-11-01 19:47 ` Hans Hagen
@ 2016-11-01 20:08   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2016-11-01 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-01 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-01 12:38 bug in parsed-xml? Pablo Rodriguez
2016-11-01 19:47 ` Hans Hagen
2016-11-01 20:08   ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).