-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
doc.toString
generates incorrect whitespace if lineWidth
< 22
#562
Labels
bug
Something isn't working
Comments
Confirming, the serialization adds an extra initial newline for folded block scalars ( |
Fixed in 2.5.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When serializing a blockquote with a line width of 21 or less, it is prefixed with additional whitespace.
To Reproduce
Run the following script:
Expected behaviour
When serializing a document, and then parsing again, the same document is produced. This holds true for the first loop using a
lineWidth
of 22, but not the second loop using alineWidth
of 21.Versions (please complete the following information):
yaml
: 2.4.5Additional context
N/A
The text was updated successfully, but these errors were encountered: