From c1c32688a4afc43f6addb99b8b5fa878944a70e3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Jan 2019 15:42:48 -0800 Subject: Overhaul in progress, mostly working. Moved all the nomsu packages into lib/, including core/*. Changes to how nomsu environments and importing work. --- string2.moon | 3 +++ 1 file changed, 3 insertions(+) (limited to 'string2.moon') diff --git a/string2.moon b/string2.moon index e6db628..de2980d 100644 --- a/string2.moon +++ b/string2.moon @@ -51,6 +51,9 @@ string2 = { lines[#lines+1] = line return table.concat(lines, "\n") + indented: (indent=" ")=> + indent..(gsub(@, "\n", "\n"..indent)) + as_lua: => escaped = gsub(@, "\\", "\\\\") escaped = gsub(escaped, "\n", "\\n") -- cgit v1.2.3