From: Diego Martínez Date: Sun, 16 Jun 2013 06:06:41 +0000 (-0300) Subject: Restore old output format of dump() X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e65ac4d626f69656c57c07e4df1a1113a014f34a;p=zefram%2Fminetest%2Fminetest_engine.git Restore old output format of dump() --- diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index 526be049..743a9cfd 100644 --- a/builtin/misc_helpers.lua +++ b/builtin/misc_helpers.lua @@ -57,7 +57,7 @@ function dump(o, dumped) dumped[o] = true local t = {} for k,v in pairs(o) do - t[#t+1] = "" .. dump(k, dumped) .. " = " .. dump(v, dumped) + t[#t+1] = "[" .. dump(k, dumped) .. "] = " .. dump(v, dumped) end return "{" .. table.concat(t, ", ") .. "}" elseif type(o) == "boolean" then