In YAML, how do I break a string over multiple lines? -


in yaml, have string that's long. want keep within 80-column (or so) view of editor, i'd break string. what's syntax this?

in other words, have this:

key: 'this very very very long string' 

and i'd have (or effect):

key: 'this very ' +      'long string' 

i'd use quotes above, don't need escape within string.

using yaml folded style, each line break replaced space. indention in each line ignored.

>   long sentence   spans several lines in yaml   rendered string   without carriage returns. 

http://symfony.com/doc/current/components/yaml/yaml_format.html


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -