Restore old output format of dump()

This commit is contained in:
Diego Martínez 2013-06-16 03:06:41 -03:00 committed by Nils Dagsson Moskopp
parent 99f845852a
commit 93b7336c01
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View 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