[Dev-luatex] [luatex] Line breaks

Paul Isambert zappathustra at free.fr
Wed Feb 23 17:37:57 CET 2011


Heiko said:

	Yes, you example and some testing shows, that it isn't tex.print,
	but \directlua seems to remove \par if it has its original meaning.

	  \def\par{bar}
	  \directlua{

	  foo = 1}

	Then Lua sees "barfoo = 1".



Actually, have I just noticed, \par is removed if it is unexpandable, whatever its definition:

\bgroup
\protected\def\par{par}
\directlua{texio.write_nl("foo\par")}
\egroup

prints "foo".
And it is a feature, Taco says.

Best,
Paul



More information about the dev-luatex mailing list