-
-
Save Kashif-E/e46b78bb02d0b83c415b2dc7bb46bf02 to your computer and use it in GitHub Desktop.
QuotedScalars.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Scalar with multilines kept as multilines | |
this-will-print-in-multiline: | this article is so awesome | |
i cant stop reading it | |
i have fallen in love with this article | |
#Scalar with multilines printed as a signle line and new lines will become spaces | |
this-scalar-goes-straight-in-line: > this is going multiline | |
but it will be printed in a single | |
line | |
#Quoted Scalars | |
unicode: "Sosa did fine.\u263A" | |
control: "\b1998\t1999\t2000\n" | |
hex esc: "\x0d\x0a is \r\n" | |
single: '"Howdy!" he cried.' | |
quoted: ' # Not a ''comment''.' | |
tie-fighter: '|\-*-/|' | |
#Multi-line Flow Scalars | |
plain: | |
This unquoted scalar | |
spans many lines. | |
quoted: "So does this a quoted scalar" | |
#integer | |
x: 10 | |
#Booleans | |
i-am-boolean: yes | |
no-i-am-not-a-boolean: off | |
boooolllleeaaaan: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment