From 0bbb7075908e5aead75170e5e8b8c9f6e326e6f0 Mon Sep 17 00:00:00 2001 From: Jeremy Faivre Date: Tue, 17 Sep 2019 00:36:33 +0200 Subject: Revert "Remove newlines before objects in arrays" This reverts commit 3cbcddc35b3b0392db5b2b2962849177a7a3b254. This commit was breaking most tests and should not have been merged --- src/Dumper.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dumper.coffee b/src/Dumper.coffee index a6cec8e..a1e75e6 100644 --- a/src/Dumper.coffee +++ b/src/Dumper.coffee @@ -38,7 +38,8 @@ class Dumper output += prefix + - '- ' + + '-' + + (if willBeInlined then ' ' else "\n") + @dump(value, inline - 1, (if willBeInlined then 0 else indent + @indentation), exceptionOnInvalidType, objectEncoder) + (if willBeInlined then "\n" else '') -- cgit v1.2.1