Skip to content
Snippets Groups Projects
Commit 05e7f71b authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix dump() indentation with non-tab indents

parent 90b6de17
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment