[luatex] Line breaks

Paul Isambert zappathustra at free.fr
Sat Feb 19 12:25:47 CET 2011


Le 19/02/2011 12:12, Dirk Laurie a écrit :
> The following are not equivalent on my system (texlive, ubuntu lucid):
>
> % excerpt from TeX file
> This is a paragraph
> with some lines.
>
> This is another paragraph,
> separated from the first
> by a blank line.
> % end excerpt
>
> % another excerpt
> \directlua{ text = [[
> This is a paragraph
> with some lines.
>
> This is another paragraph,
> separated from the first
> by a blank line. ]]
> tex.print(text)}
> % end excerpt
>
> The second excerpt sets as a single paragraph.

Which confirms something I'd been suspecting for a while but never 
really investigated: blank lines aren't turned into \par in \directlua, 
as they are anywhere else (including whatsits). I guess that's a 
feature, so you can have blank lines in your Lua code, but in that case 
it's not what's intended.

Best,
Paul



More information about the luatex mailing list