Skip to content

Commit

Permalink
Preserve the indent when rendering multiline array
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Mar 31, 2022
1 parent 4d539f5 commit 1bed380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomlkit/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def as_string(self) -> str:
for v in self._value
if not isinstance(v, Whitespace)
)
s += "]"
s += self.trivia.indent + "]"

return s

Expand Down

0 comments on commit 1bed380

Please sign in to comment.