lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 17/01/2008 23:32, Hisham wrote:
Apparently, on Linux and OSX at least, "\r" characters are cut off the
ends of lines when Lua loads .lua sources, including inside long
strings.

Looks logical (for me) that source files are normalized before being processed. I suppose you can add a \r if needed on some lines only, or replace all \n by \r\n otherwise, which can be done at initialization time.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --