projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2616545
)
Restore old output format of dump()
author
Diego MartÃnez
<kaeza@users.sf.net>
Sun, 16 Jun 2013 06:06:41 +0000
(
03:06
-0300)
committer
PilzAdam
<pilzadam@minetest.net>
Tue, 18 Jun 2013 19:55:53 +0000
(19:55 +0000)
builtin/misc_helpers.lua
patch
|
blob
|
history
diff --git
a/builtin/misc_helpers.lua
b/builtin/misc_helpers.lua
index 526be0492368260c94205bc7b9948d247e25d0ac..743a9cfd30768d4894a55c41ebd9b19572eaa6cc 100644
(file)
--- 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