Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML-LibYAML CPAN distribution.

Report information
The Basics
Id: 71986
Status: new
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: shuff [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.37
Fixed in: (no value)



Subject: Failure to parse folded scalar syntax
I've attached a test case that demonstrates an issue documented in the SYNOPSIS section of the POD for YAML.pm. The issue is related to the "folded" scalar syntax specification, described here: http://yaml.org/spec/1.2/spec.html#id2761032 The example given in the YAML spec is properly parsed by YAML::XS 0.37, but the example given in the YAML.pm SYNOPSIS is not properly parsed, and it looks to me like both are valid YAML. It's not clear to me whether the issue is in YAML-LibYAML or in the underlying libyaml; I've looked through the libyaml Trac, and I didn't see an issue that was obviously the same. -shuff -- Steve Huff (SHUFF) * shuff@cpan.org
Subject: folded-scalar.t
use t::TestYAMLTests tests => 2; my $yaml = <<'...'; --- > Mark McGwire's year was crippled by a knee injury. ... my $string = Load $yaml; is $string, "Mark McGwire's year was crippled by a knee injury.\n", "Example from YAML spec"; my $yaml2 = <<'...'; --- > You probably think YAML stands for "Yet Another Markup Language". It ain't! YAML is really a data serialization language. But if you want to think of it as a markup, that's OK with me. A lot of people try to use XML as a serialization format. "YAML" is catchy and fun to say. Try it. "YAML, YAML, YAML!!!" ... my $string2 = Load $yaml2; my $result2 = <<'...'; You probably think YAML stands for "Yet Another Markup Language". It ain't! YAML is really a data serialization language. But if you want to think of it as a markup, that's OK with me. A lot of people try to use XML as a serialization format. "YAML" is catchy and fun to say. Try it. "YAML, YAML, YAML!!!" ... is $string2, $result2, "Example from YAML.pm SYNOPSIS";