2 ms·
To create a multi-line string in YAML, you can prefix a preceding line with: > | >+ >- |+ |- >+# and so on. How do you know which to use and
by t-writescode 6y ago
To create a multi-line string in YAML, you can prefix a preceding line with:
>
|
>+
>-
|+
|-
>+#
and so on.
How do you know which to use and what does what?! Especially when you see other people doing it in their code and you don't know why.
I think they could have done it more cleanly by being more verbose. Python's """ syntax or even Ruby's <<EOL
EOL
format are cleaner.