mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix dump() indentation with non-tab indents
This commit is contained in:
parent
90b6de173e
commit
05e7f71b33
@ -145,7 +145,7 @@ function dump(o, indent, nested, level)
|
||||
nested[o] = nil
|
||||
if indent ~= "" then
|
||||
local indent_str = "\n"..string.rep(indent, level)
|
||||
local end_indent_str = "\n"..string.rep("\t", level - 1)
|
||||
local end_indent_str = "\n"..string.rep(indent, level - 1)
|
||||
return string.format("{%s%s%s}",
|
||||
indent_str,
|
||||
table.concat(t, ","..indent_str),
|
||||
|
Loading…
Reference in New Issue
Block a user