summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Cossick <WesCossick@users.noreply.github.com>2017-10-23 11:43:10 -0500
committerGitHub <noreply@github.com>2017-10-23 11:43:10 -0500
commit3cbcddc35b3b0392db5b2b2962849177a7a3b254 (patch)
tree1d6a64c7d64b93ba7300bf039a9762aad9258537
parentc0cbd05f1d70a63ddb2a9dc8a5d3547850d1cbf3 (diff)
downloadyamljs-3cbcddc35b3b0392db5b2b2962849177a7a3b254.tar.gz
Remove newlines before objects in arrays
-rw-r--r--src/Dumper.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Dumper.coffee b/src/Dumper.coffee
index 0338212..9462966 100644
--- a/src/Dumper.coffee
+++ b/src/Dumper.coffee
@@ -34,8 +34,7 @@ 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 '')