Make annotations tolerant against empty lines
Hi, if the first line after an annotation start is empty, a new line is introduced. How can I make it tolerant so that the following both examples come out equal (Content and the annotation text on the same line)? \usemodule [annotation] \defineannotation [myannotation] \setupannotation [myannotation] [alternative=myalternative] \defineannotationalternative [myalternative] [renderingsetup=annotation:myalternative] \startsetups [annotation:myalternative] Content: \placeannotationcontent \stopsetups \starttext \startmyannotation \input knuth \stopmyannotation \blank \startmyannotation \input knuth \stopmyannotation \stoptext Marco
Am 07.01.2013 um 22:25 schrieb Marco Patzer
Hi,
if the first line after an annotation start is empty, a new line is introduced. How can I make it tolerant so that the following both examples come out equal (Content and the annotation text on the same line)?
I made a simple change in the module and the first line is now ignored (can be a side effect of stripping spaces at the begin/end of the content) but I want to run a few tests before I release it. Still I would try to avoid such input because there can be cases where such a input would fail because a empty line ends a paragraph. Wolfgang
participants (2)
-
Marco Patzer
-
Wolfgang Schuster