# [NTG-context] Bug in dowithpargument and paragraph ending in a macro

Tue Jul 10 08:52:57 CEST 2007

> Hi,
>
> Consider this:
>
> \starttext
>
> \section This is ok
>
> I like the loose format
>
> \section why \unknown

\section why \unknown\par

> This does not work
>
> \stoptext
>
> which gives
>
> ./test.tex:8: Paragraph ended before \nextpar was complete.
>                     \par
> l.8
>
> I suspect you've forgotten a `}', causing me to apply this
> control sequence to too much text. How can we recover?
> My plan is to forget the whole thing and hope for the best.
>
> This seems to be a bug in dowithpargument. As a temporary workaround,
> I can just enclose the section in braces, but it will be nice if
> \dowithpargument behaves correctly in this situation.
>

the macro eats the endline char.

This did also happen in normal text:

\starttext

look, there is no space after the \TeX
sign, do you understand it.

\stoptext

Wolfgang