You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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: