Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

condenseFlow in combination with flowLevel 0 is broken #412

Closed
arabold opened this issue Mar 22, 2018 · 1 comment
Closed

condenseFlow in combination with flowLevel 0 is broken #412

arabold opened this issue Mar 22, 2018 · 1 comment

Comments

@arabold
Copy link

arabold commented Mar 22, 2018

Simple sample code:

var jsYaml = require("js-yaml")
console.log(jsYaml.safeDump({ a: "a", b: "b", c: "c" }, { flowLevel: 0, condenseFlow: true }))

This results in a broken string like this:

{"a":a", b":b", c":c}\n

Without condense flow the result works as expected:

{a: a, b: b, c: c}\n
@puzrin
Copy link
Member

puzrin commented Mar 22, 2018

Those params should not be combined together. If one wish to use both - that's not our client :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants