Restore old output format of dump()
authorDiego Martínez <kaeza@users.sf.net>
Sun, 16 Jun 2013 06:06:41 +0000 (03:06 -0300)
committerPilzAdam <pilzadam@minetest.net>
Tue, 18 Jun 2013 19:55:53 +0000 (19:55 +0000)
builtin/misc_helpers.lua

index 526be0492368260c94205bc7b9948d247e25d0ac..743a9cfd30768d4894a55c41ebd9b19572eaa6cc 100644 (file)
@@ -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