Question

In YAML, the following syntax is used if you want to have a very long value spread written across multiple lines, but you don't want to keep the newlines:

fold_newlines: [...]
this is really a
single line of text
despite appearances

fold_newlines: >
this is really a
single line of text
despite appearances

^^ Note the use of the ">" syntax, so the value of fold_newlines will be exactly:

this is really a single line of text despite appearances

Question

In YAML, the following syntax is used if you want to have a very long value spread written across multiple lines, but you don't want to keep the newlines:

fold_newlines: [...]
this is really a
single line of text
despite appearances

?

Question

In YAML, the following syntax is used if you want to have a very long value spread written across multiple lines, but you don't want to keep the newlines:

fold_newlines: [...]
this is really a
single line of text
despite appearances

fold_newlines: >
this is really a
single line of text
despite appearances

^^ Note the use of the ">" syntax, so the value of fold_newlines will be exactly:

this is really a single line of text despite appearances

If you want to change selection, open document below and click on "Move attachment"

YAML Syntax — Ansible Documentation
herwise be a very long line easier to read and edit. In either case the indentation will be ignored. Examples are: include_newlines: | exactly as you see will appear these three lines of poetry <span>fold_newlines: > this is really a single line of text despite appearances While in the above > example all newlines are folded into spaces, there are two ways to enforce a newline to be kept: fold_some_newlines: > a b c d e f same_as: "a b\nc d\n e\nf\n

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions