Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



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

Answer
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

Answer
?

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

Answer
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

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.