lua-users home
lua-l archive

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


On 19/05/2010 06:16, M Joonas Pihlaja wrote:
Encoding long data without unwanted newlines (at least that's what I'm
going to use it for.)  Sure the syntax is a little ugly, but it works.
e.g.

data = "bla bla bla bla\*
	\032bla bla bla"

-->  "bla bla bla bla bla bla bla"

I wasn't initially a fan of the swallowing of whitespace beyond the
newline for indenting thing, but can see it's useful and can live with
escaping leading _wanted_ spaces.

Or write:

data = "bla bla bla bla \*
	bla bla bla"

:-)

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