[dev-context] \dodoregister bug
Taco Hoekwater
taco at elvenkind.com
Wed Feb 22 14:22:54 CET 2006
Duncan Hothersall wrote:
> With latest ConTeXt:
>
> --
> \starttext
> This is a paragraph of text with an index term at the very end of it.
> This is a paragraph of text with an index term at the very end of it.
> \index{test}
>
> This is another paragraph. This is another paragraph. This is another
> paragraph.
> \stoptext
> --
>
> These two paras run together. If I remove the recent fix (which I
> requested - sorry Hans!) to \dodoregister in core-reg:
>
> \def\dodoregister[#1]#2#3%
> {\doprocesspageregister[#1]{#2}{#3}}
>
> % intead of
>
> %% \def\dodoregister[#1]#2#3%
> %% {\doflushatpar{\doprocesspageregister[#1]{#2}{#3}}}
What about:
\def\dodoregister[#1]#2#3%
{\ifvmode
\expandafter\doflushatpar
\else
\expandafter\firstofoneargument
\fi
{\doprocesspageregister[#1]{#2}{#3}}}
Does that behave ok?
Taco
More information about the dev-context
mailing list