summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Faivre <contact@jeremyfa.com>2017-10-23 23:01:49 +0200
committerGitHub <noreply@github.com>2017-10-23 23:01:49 +0200
commit5915bbe6062088f8a8db643cfca631c966cbf0db (patch)
tree1d6a64c7d64b93ba7300bf039a9762aad9258537
parentc0cbd05f1d70a63ddb2a9dc8a5d3547850d1cbf3 (diff)
parent3cbcddc35b3b0392db5b2b2962849177a7a3b254 (diff)
downloadyamljs-5915bbe6062088f8a8db643cfca631c966cbf0db.tar.gz
Merge pull request #99 from WesCossick/patch-1
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 '')