mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix dump() indentation with non-tab indents
This commit is contained in:
parent
90b6de173e
commit
05e7f71b33
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue