From: Diego Martínez Date: Sun, 16 Jun 2013 06:06:41 +0000 (-0300) Subject: Restore old output format of dump() X-Git-Tag: 0.4.8~394^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e65ac4d626f69656c57c07e4df1a1113a014f34a;p=oweals%2Fminetest.git Restore old output format of dump() --- diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index 526be0492..743a9cfd3 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