Subject: | YAML::XS generates wrapped text for long scalar value |
Here is an example in our system. This uses perl 5.8.8 and YAML::XS
0.33.
Show quoted text
>> /home/utils/perl-5.8.8/bin/perl -MYAML::XS -e 'print Dump
{my_key=>"When foo or foobar is used, everyone understands that these
are just examples, and they dont really exist."}'
---
my_key: When foo or foobar is used, everyone understands that these are
just examples,
and they dont really exist.
The long scalar gets wrapped up by default with YAML::XS. This does not
happen with YAML package.
Show quoted text>> /home/utils/perl-5.8.8/bin/perl -MYAML -e 'print Dump {my_key=>"When
foo or foobar is used, everyone understands that these are just
examples, and they dont really exist."}'
---
my_key: 'When foo or foobar is used, everyone understands that these
are just examples, and they dont really exist.'