How can I break a long string in YAML (like long url, or filename/path), without newlines becoming spaces?
Example input:
url: >
https://example.com/?what=Lorem
%20ipsum%20dolor
%20sit%20amet
Output:
{
"url": "https://example.com/?what=Lorem %20ipsum%20dolor %20sit%20amet"
}
Desired output:
{
"url": "https://example.com/?what=Lorem%20ipsum%20dolor%20sit%20amet"
}
Turns out Google failed on me and this question was already asked and answered on this site: Is there a way to represent a long string that doesnt have any whitespace on multiple lines in a YAML document?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With