Closed
Description
When using collections, string literals starting with # are still seen as comments, and are stripped. However, it works correctly in normal items.
test: |
foo
# bar
baz
collection:
- one: |
foo
# bar
baz
- two: |
foo
# bar
baz
This will result in:
Array(
[collection] => Array (
[0] => Array( [one] => foo\nbaz )
[1] => Array( [two] => foo\nbaz )
)
[test] => foo\n#bar\nbaz
)
while expected:
Array(
[collection] => Array (
[0] => Array( [one] => foo\n#bar\nbaz )
[1] => Array( [two] => foo\n#bar\nbaz )
)
[test] => foo\n#bar\nbaz
)
I've checked with the yaml pecl extension, and this works as expected.