From 25e06d1fce660e7c8144425b440f7b1c698e2fb7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Apr 2018 15:29:16 -0700 Subject: Getting closer. --- lua_obj.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua_obj.moon') 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 -- cgit v1.2.3