We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When parsing documents that include values with either [] or {}, the resulting string representation adds a new line before the value.
[]
{}
Example:
const yamlString = ` testArray: [] testObject: {} testArray2: ["hello"] `; const doc = YAML.parseDocument(yamlString); console.log(doc.toString());
Result:
// result testArray: [] testObject: {} testArray2: [ "hello" ]
Expected:
The text was updated successfully, but these errors were encountered:
b9c767f
Thanks for pointing this out. Collection pairs with single-line flow collections should now also get stringified as single lines.
Sorry, something went wrong.
Stringify pairs with single-line flow collection values on a single l…
7a8a21a
…ine (Fixes #85)
No branches or pull requests
When parsing documents that include values with either
[]
or{}
, the resulting string representation adds a new line before the value.Example:
Result:
Expected:
The text was updated successfully, but these errors were encountered: