Re: End-of-line characters in long strings
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: End-of-line characters in long strings
- From: Philippe Lhoste <PhiLho@...>
- Date: 2008年1月18日 12:26:07 +0100
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
-- -- -- -- -- -- -- -- -- -- -- -- -- --