aboutsummaryrefslogtreecommitdiff
path: root/lua_obj.moon
diff options
context:
space:
mode:
Diffstat (limited to 'lua_obj.moon')
-rw-r--r--lua_obj.moon4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua_obj.moon b/lua_obj.moon
index 1979c94..21017d7 100644
--- a/lua_obj.moon
+++ b/lua_obj.moon
@@ -73,8 +73,10 @@ class Lua
__tostring: =>
buff = {}
- for b in *@bits
+ for i,b in ipairs @bits
buff[#buff+1] = tostring(b)
+ if i < #@bits and type(b) != 'string' and b.is_statement
+ buff[#buff+1] = "\n"
ret = concat(buff, "")
assert(not ret\match(".*table: 0x.*"))
return ret