Setting multiline content generates |- #1384
-
Hi I'm using yq 4.28.1 the following way
But the output yml has
The problem here is that cloud-init doesn't like the - after the | is there any way to stop yq from generating it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Found a temporary workaround |
Beta Was this translation helpful? Give feedback.
-
Gday - take a look at this documentation here: https://mikefarah.gitbook.io/yq/operators/string-operators#string-blocks-bash-and-newlines Basically the dash at the end of |
Beta Was this translation helpful? Give feedback.
Gday - take a look at this documentation here: https://mikefarah.gitbook.io/yq/operators/string-operators#string-blocks-bash-and-newlines
Basically the dash at the end of
|-
indicates that there is no new line at the end of the string (https://yaml-multiline.info/)