We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When marshalling a block scalar, the result does not follow custom indentation.
yaml.MarshalWithOptions(map[string]interface{}{ "scalar": "foo\nbar\n", }, yaml.Indent(4))
expected result:
scalar: | foo bar
actual result:
I've made a playground to illustrate the issue, comparing behaviors with other yaml library: https://go.dev/play/p/aaAtMUIt77R
The text was updated successfully, but these errors were encountered:
Fix indentation for raw string newlines
fdb1341
#292
c559864
shuheiktgw
Successfully merging a pull request may close this issue.
When marshalling a block scalar, the result does not follow custom indentation.
expected result:
actual result:
I've made a playground to illustrate the issue, comparing behaviors with other yaml library: https://go.dev/play/p/aaAtMUIt77R
The text was updated successfully, but these errors were encountered: