aboutsummaryrefslogtreecommitdiff
path: root/utils.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-05 21:20:11 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-05 21:20:11 -0700
commit2e9a3cdf009e80caced01f81dc34d2968346d429 (patch)
tree7f109784b50fc094609c0916abd91f519ad6eb51 /utils.moon
parent86c0fd47eb4b227446d6ca2286cb4b078176144e (diff)
Added longstrings and removed indentification step.
Diffstat (limited to 'utils.moon')
-rw-r--r--utils.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.moon b/utils.moon
index 3004c58..ee97903 100644
--- a/utils.moon
+++ b/utils.moon
@@ -17,9 +17,9 @@ utils = {
when 'string'
if not add_quotes
x
- elseif not x\find[["]]
+ elseif not x\find[["]] and not x\find"\n"
"\"#{x}\""
- elseif not x\find[[']]
+ elseif not x\find[[']] and not x\find"\n"
"\'#{x}\'"
else
for i=0,math.huge