On Thu, 19 Jan 2017, Rik Kabel wrote:
ConTeXters,
When \dorecurse is active in the following MWE, the lines of text are
overprinted. At least, this is the case for me, please confirm it for
yourself. When \dorecurse is disabled, the lines print as they should,
separately. Please tell me what I am doing wrong with this, if anything,
and how to fix it. (Running ConTeXt ver: 2017.01.17 17:37 MKIV beta
fmt: 2017.1.19 on Win10 x64. There are no errors in the log.)
This has nothing to do with \dorecurse, but due to the fact that the
argument of \dorecurse or any macro is parsed before the catcode changes
introduced by \startlines come into effect. Here is a simpler example
demonstrating similar behavior:
\def\test#1{#1}
\starttext
\test{Something
\startlines
Line one
Line two
\stoplines}
\stoptext
Depending on what you want to do, it should be possible to come up with a
workaround.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________