-
Hi folks, I spent a lot of time searching and trying out multiple options without success. I hope someone has dealt with this before and can help me.
This is what I'd like to get:
I realized yq returns multi-line when I'm getting only the
but I can't figure out how to get the expected result from a single yq execution. I would appreciate it if someone has some input here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This caused by an annoying existing issue in the underlying go-yaml parser whereby if there are any trailing spaces before the newline character, then the entire string is printed in double quotes (see go-yaml/yaml#880) Luckily, you can use the
|
Beta Was this translation helpful? Give feedback.
This caused by an annoying existing issue in the underlying go-yaml parser whereby if there are any trailing spaces before the newline character, then the entire string is printed in double quotes (see go-yaml/yaml#880)
Luckily, you can use the
sub
operator to fix this on the fly: