lua-users home
lua-l archive

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


On Sun, Aug 16, 2009 at 10:59 AM, steve donovan wrote:
> On Sun, Aug 16, 2009 at 12:33 PM, Stuart P.Bentley wrote:
>>     [[
>>     This string starts with 6 spaces!
>>     And there's another six after that newline!
>>     Does that look right to you?]]
>
> But it's not difficult to strip out initial indentation using pure Lua code:

When doing this, you can also omit parenthesis in the function call,
in which case the function (f) resembles a modifier on the string: f[[
..... ]] .  See also [1].

[1] http://lua-users.org/wiki/MetaLuaRecipes ("Multiline String Break Escapes")