Skip to main content
Code and think

YAML multiline syntax

There are two commands to split string to multiline in the YAML file. "|" (literal) the output will preserve the newlines ">" (folded) the output will remove newlines

You can use "-" to trim the output e.g. "|-" or ">-". This will remove the line break at the end.

Reference