YAML multiline strings
β’ 47 words β’ 1 min β’ updated
β οΈ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.
I keep forgetting what the correct syntax is.
This reference is the best: https://yaml-multiline.info/
Summary:
>eats newlines,|keeps them.- Appending a
-to either of these eats the newline(s) at the end. Omitting it keeps one. Appending a+preserves all newlines at the end.