I have a very long string:
Key: 'this is my very very very very very very long string'
I would like to express it over multiple shorter lines, e.g.,
Key: 'this is my very very very ' +
'long string'
I would like to use quotes as above, so that I don’t need to escape anything within the string.
Using yaml folded style. The indention in each line will be ignored. A line break will be inserted at the end.
http://symfony.com/doc/current/components/yaml/yaml_format.html
You can use the "block chomping indicator" to eliminate the trailing line break, as follows:
In either case, each line break is replaced by a space.
There are other control tools available as well (for controlling indentation for example).
See https://yaml-multiline.info/