-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unexpected line break after marshal #348
Comments
Found the cause, there is a "emitter.best_width" value in source code and it is set to 80 and will generate line break if the space character's index is larger than that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I want to marshal a map value into a yaml text file, i found that Mashal() function generates an unexpected line break in the mashalled bytes array.
Here is the example code:
There is an extra line break generated before "bbb". If I reduce the number of character 'a', Marshal() function works as expected and no extra line break.
Go version: 1.10
Platform: MacOS 10.13.3 and Ubuntu 16.04.4
The text was updated successfully, but these errors were encountered: