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 multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
            exactly as you see
            will appear these three
            lines of poetry

Answer
include_newlines: |
            exactly as you see
            will appear these three
            lines of poetry

^^ note the "|" syntax, such that the value of include_newlines is exactly:

exactly as you see
will appear these three
lines of poetry


Question

In YAML, the following syntax is used if you want to have multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
            exactly as you see
            will appear these three
            lines of poetry

Answer
?

Question

In YAML, the following syntax is used if you want to have multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
            exactly as you see
            will appear these three
            lines of poetry

Answer
include_newlines: |
            exactly as you see
            will appear these three
            lines of poetry

^^ note the "|" syntax, such that the value of include_newlines is exactly:

exactly as you see
will appear these three
lines of poetry

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

YAML Syntax — Ansible Documentation
lock Scalar” > will fold newlines to spaces; it’s used to make what would otherwise be a very long line easier to read and edit. In either case the indentation will be ignored. Examples are: <span>include_newlines: | exactly as you see will appear these three lines of poetry 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

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.