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
Why is yq putting multiline separator indicator (|-
) to complex object replacements?
#2025
Comments
|-
) to complex object replacements?
The program is pretty-printing the equivalent string with the newline. See https://yaml-multiline.info/ for how the multiline marks work, but the actual value is identical.
If you have
If you want an actual
|
Bummer. Thanks for the info @nicktimko! |
@Skarlso did you intend to put the escaped string into the YAML (it contains the characters |
Yes, that's an object. Something like bla: value1
bla2: value2 Which is the replacement. That should be translated into a newline I believe? If I would actually try and do a multi-line string I would get a weird
|
Ah sorry, my bad, too many spaces. This is the equivalent.
Still got |
The It's a known issue against go-yaml; and there are a bunch of tickets against it - but no one has worked on that repo for many months now :( |
Describe the bug
OSX
Version: v4.40.5
Why did the
|-
get there and how can I remove it?The text was updated successfully, but these errors were encountered: