Re: [NTG-context] newlines in return Lua string

2019-06-15 Thread Aditya Mahajan
On Sat, 15 Jun 2019, Hans van der Meer wrote: From\ctxlua{tex.print(hvdm.myluacall("\xmlatt{#1}{argument}"))} Lua returns a string containing newline characters '\n'. In ConTeXt this returned string is printed as one line, the embedded newlines are not honoured. I thought to replace with

[NTG-context] newlines in return Lua string

2019-06-15 Thread Hans van der Meer
From\ctxlua{tex.print(hvdm.myluacall("\xmlatt{#1}{argument}"))} Lua returns a string containing newline characters '\n'. In ConTeXt this returned string is printed as one line, the embedded newlines are not honoured. I thought to replace with \crlf in this manner: string1 .. "\\crlf" ..