diff options
author | Jérémy Faivre <contact@jeremyfa.com> | 2017-10-23 23:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 23:01:49 +0200 |
commit | 5915bbe6062088f8a8db643cfca631c966cbf0db (patch) | |
tree | 1d6a64c7d64b93ba7300bf039a9762aad9258537 | |
parent | c0cbd05f1d70a63ddb2a9dc8a5d3547850d1cbf3 (diff) | |
parent | 3cbcddc35b3b0392db5b2b2962849177a7a3b254 (diff) | |
download | yamljs-5915bbe6062088f8a8db643cfca631c966cbf0db.tar.gz |
Merge pull request #99 from WesCossick/patch-1
Remove newlines before objects in arrays
-rw-r--r-- | src/Dumper.coffee | 3 |
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 '') |