Preserve line breaks exactly with `|`.
Section: Strings and quoting
Literal block scalar
yaml
yaml
body: |
Thanks for your patience.
Please find attached the executed agreement.Explanation
Literal blocks preserve newlines and are ideal for emails, certificates, Markdown, or shell scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Strings and quoting
Folded block scalar
Wrap multi-line text into a single logical paragraph with `>`.
Single-quoted string
Keep backslashes literal and avoid interpolation-like behavior.
Quote ambiguous boolean-like words
Avoid implicit booleans by quoting risky strings.
Quote date-like values
Prevent timestamps and date-like tokens from being auto-typed.