Skip Menu |

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

Report information
The Basics
Id: 32402
Status: resolved
Priority: 0/
Queue: YAML-Tiny

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

Bug Information
Severity: (no value)
Broken in: 1.25
Fixed in: (no value)



Subject: YAML::Tiny can't parse what it outputs
Here's a simple example: perl -Mstrict -MYAML::Tiny -e 'warn YAML::Tiny::Load(YAML::Tiny::Dump([ value => "><" ]))' This is what it outputs: --- - value - >< This is the error: Multi-line scalar content missing at /usr/lib64/perl5/site_perl/5.8.8/YAML/Tiny.pm line 157. I've also gotten this error: Illegal line indenting at /usr/lib64/perl5/site_perl/5.8.8/YAML/Tiny.pm line 160. -- Thanks
Subject: Re: [rt.cpan.org #32402] YAML::Tiny can't parse what it outputs
Date: Fri, 18 Jan 2008 19:14:40 +1100
To: bug-YAML-Tiny [...] rt.cpan.org
From: Adam Kennedy <adamk [...] cpan.org>
Thanks for that. I suspect the problem is that there's some characters missing from the regex that decides whether or not to escape strings. Should be fixed shortly. Adam K Robert Krimen via RT wrote: Show quoted text
> Thu Jan 17 20:17:57 2008: Request 32402 was acted upon. > Transaction: Ticket created by RKRIMEN > Queue: YAML-Tiny > Subject: YAML::Tiny can't parse what it outputs > Broken in: 1.25 > Severity: (no value) > Owner: Nobody > Requestors: rkrimen@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32402 > > > > Here's a simple example: > > perl -Mstrict -MYAML::Tiny -e 'warn YAML::Tiny::Load(YAML::Tiny::Dump([ > value => "><" ]))' > > This is what it outputs: > > --- > - value > - >< > > This is the error: > > Multi-line scalar content missing at > /usr/lib64/perl5/site_perl/5.8.8/YAML/Tiny.pm line 157. > > I've also gotten this error: > > Illegal line indenting at /usr/lib64/perl5/site_perl/5.8.8/YAML/Tiny.pm > line 160. > > -- > Thanks >
When serializing, YAML::Tiny now quotes anything with a leading \W character. Resolved in 1.26