Subject: | Wrong loading of YAML with double quoted style |
Date: | Fri, 19 Feb 2010 00:31:58 +0100 |
To: | bug-YAML-Syck [...] rt.cpan.org |
From: | Johann Werner <johann.Werner [...] nureg.de> |
Loading a YAML string that has a block with double quoted style returns a wrong result.
Using this valid YAML input:
--- "<tag>content\
\ string</tag>\n\
<anothertag>other\
\ content</anothertag>\n\
\ \n<i>new</i>\n"
YAML::Syck::Load returns the string:
<tag>content\ string</tag>
<anothertag>other\ content</anothertag>
\
<i>new</i>
instead of the correct output of
<tag>content string</tag>
<anothertag>other content</anothertag>
<i>new</i>
In this example three backslashes are remaining in the ouput. A quick test with YAML::XS results in a correct output.
My environment uses:
Perl v5.10.0
OS X 10.6.2
YAML::Syck 1.07