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}}} This makes things work correctly again, but of course it also removes the nice fix which stopped \index calls at the start of paras causing additional white-space. I suggest that this is reverted though, because this is probably a more serious and common problem than the one we were trying to fix. Duncan
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
participants (2)
-
Duncan Hothersall
-
Taco Hoekwater