Subject: | Cannot parse simple scalar yaml containing TABs |
The attached yaml document cannot be parsed with YAML.pm, but works with
both YAML::Syck and YAML::XS. The results are:
$ /usr/perl5.12.0/bin/ysh -MYAML < simple.yaml
YAML Error: Inconsistent indentation level
Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
Line: 2
Document: 1
at /usr/perl5.12.0/lib/site_perl/5.12.0/YAML/Loader.pm line 719
$ /usr/perl5.12.0/bin/ysh -MYAML::Syck < simple.yaml
$VAR1 = '1 This yaml is invalid';
$ /usr/perl5.12.0/bin/ysh -MYAML::XS < simple.yaml
$VAR1 = '1 This yaml is invalid';
I did not look up into the YAML spec to see if actually YAML.pm is right
and the others are not. If this is the case then feel free to move this
ticket to the YAML-Syck and YAML-XS RT queues.
Regards,
Slaven
Subject: | simple.yaml |
--- 1
This yaml is invalid