-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Flawed line wrapping for strings with newlines #529
Comments
This was due to mismatching expectations in when indentation is applied to indented scalar values. For This also revealed a slight offset in the cutoff for the first soft wrap after a block scalar newline that's also fixed here. |
Describe the bug
Wrapping of long strings does not work correctly. After a newline is encountered in the value it will no longer wrap any more content.
Further more, if the line length becomes small enough it inserts a leading newline and doesn't even wrap at the correct line length.
To Reproduce
This will print
Expected behaviour
Versions (please complete the following information):
yaml
: 2.4.0Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: