Restore old output format of dump()
This commit is contained in:
parent
99f845852a
commit
93b7336c01
|
@ -57,7 +57,7 @@ function dump(o, dumped)
|
||||||
dumped[o] = true
|
dumped[o] = true
|
||||||
local t = {}
|
local t = {}
|
||||||
for k,v in pairs(o) do
|
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
|
end
|
||||||
return "{" .. table.concat(t, ", ") .. "}"
|
return "{" .. table.concat(t, ", ") .. "}"
|
||||||
elseif type(o) == "boolean" then
|
elseif type(o) == "boolean" then
|
||||||
|
|
Loading…
Reference in New Issue