Skip to content

Commit d2d196f

Browse files
committed
Fix dumping indents
1 parent fb2b1f3 commit d2d196f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bsrocks/lib/dump.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ local function serializeImpl(t, tracking, indent, tupleLength)
7272
entry = "[" .. serializeImpl(k, tracking, subIndent) .. "] = " .. serializeImpl(v, tracking, subIndent)
7373
end
7474

75+
entry = subIndent .. entry
76+
7577
if not first then
7678
entry = nextNewLine .. entry
7779
else
7880
first = false
7981
end
8082

8183
n = n + 1
82-
result[n] = subIndent .. entry
84+
result[n] = entry
8385
end
8486
end
8587

0 commit comments

Comments
 (0)