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
C1:
description: |-
Hello
World
C2:
description: |-
Hello
World
C3:
description: "Hello \nWorld"
which looks very unexpected for me. For some reason, it does not use multi-line if there is a whitespace before \n. Is it expected behavior? How can I force the library to use multi-line anyway? (I have quite large jsons which can not be modified which is serialized in a single line, but should be serialized in multi-line)
The text was updated successfully, but these errors were encountered:
Hi!
I'm using
gopkg.in/yaml.v3
version of the library and trying to serialize string with a lot of lines breaked with\n
symbol.Here is minimized code snippet which reproduces the issue(?):
I've got the next results:
which looks very unexpected for me. For some reason, it does not use multi-line if there is a whitespace before
\n
. Is it expected behavior? How can I force the library to use multi-line anyway? (I have quite large jsons which can not be modified which is serialized in a single line, but should be serialized in multi-line)The text was updated successfully, but these errors were encountered: