diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 15:42:48 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 15:43:24 -0800 |
| commit | c1c32688a4afc43f6addb99b8b5fa878944a70e3 (patch) | |
| tree | c886f21b5b08a9053aa74fcba4b241dae5ede76d /string2.moon | |
| parent | 2309b696fc34b24f05f6658b94f9105ca8ee76e4 (diff) | |
Overhaul in progress, mostly working. Moved all the nomsu packages into
lib/, including core/*. Changes to how nomsu environments and importing
work.
Diffstat (limited to 'string2.moon')
| -rw-r--r-- | string2.moon | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
