| 1 |
--- |
| 2 |
# Make sure that the Transformer does not mangle strings |
| 3 |
# TODO: there is a bug in ruamel.yaml that discards some EOL comments |
| 4 |
|
| 5 |
single: "single" # this is a comment |
| 6 |
single_with_double: '"single" quoted' # this is a comment |
| 7 |
|
| 8 |
single_multiline_with_octothorpe: "single over 160 char line to force wrapping. over 160 char line to force wrapping. over 160 char line to force wrapping. over 160\n\ |
| 9 |
# this is not a comment" |
| 10 |
|
| 11 |
double: "double" # this is a comment |
| 12 |
double_with_single: "'double' quoted" # this is a comment |
| 13 |
|
| 14 |
double_multiline_with_octothorpe: "double over 160 char line to force wrapping. over 160 char line to force wrapping. over 160 char line to force wrapping. over 160\n\ |
| 15 |
# this is not a comment" |
| 16 |
|
| 17 |
# this is a comment |
| 18 |
folded_block_scalar_with_octothorpe: > # comment 1 |
| 19 |
# this is not a comment |
| 20 |
|
| 21 |
# this is a comment |
| 22 |
folded_chomp_strip_block_scalar_with_octothorpe: >- # comment 2 |
| 23 |
# this is not a comment |
| 24 |
|
| 25 |
# this is a comment |
| 26 |
folded_chomp_keep_block_scalar_with_octothorpe: >+ # comment 3 |
| 27 |
# this is not a comment |
| 28 |
|
| 29 |
# this is a comment |
| 30 |
literal_block_scalar_with_octothorpe: | # this is a | EOL comment |
| 31 |
# this is not a comment |
| 32 |
|
| 33 |
# this is a comment |
| 34 |
literal_chomp_strip_block_scalar_with_octothorpe: |- # this is a | EOL comment |
| 35 |
# this is not a comment |
| 36 |
|
| 37 |
# this is a comment |
| 38 |
literal_chomp_keep_block_scalar_with_octothorpe: | # this is a | EOL comment |
| 39 |
# this is not a comment |