Skip to content

Commit 0bbb707

Browse files
committed
Revert "Remove newlines before objects in arrays"
This reverts commit 3cbcddc. This commit was breaking most tests and should not have been merged
1 parent d2662e9 commit 0bbb707

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Dumper.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class Dumper
3838

3939
output +=
4040
prefix +
41-
'- ' +
41+
'-' +
42+
(if willBeInlined then ' ' else "\n") +
4243
@dump(value, inline - 1, (if willBeInlined then 0 else indent + @indentation), exceptionOnInvalidType, objectEncoder) +
4344
(if willBeInlined then "\n" else '')
4445

0 commit comments

Comments
 (0)