# YAML Test Matrix

--- &test-96L6
  Title: Spec Example 2.14. In the folded scalars, newlines become spaces
  Tags: [ folded, scalar, spec ]

YAML

--- >
  Mark McGwire's
  year was crippled
  by a knee injury.

Expected Events

+STR
+DOC ---
=VAL >Mark McGwire's year was crippled by a knee injury.\n
-DOC
-STR

Expected JSON

"Mark McGwire's year was crippled by a knee injury.\n"

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-tiny-json

 json_ok

perl-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 +NODE|
   1    3    3    3 =WSPC|.
   1    4    4    4 +VAL |
   1    4    4    4 =SYNX|>
   1    5    5    5 =EOL |\x0a
   2    0    6    6 =DENT|..
   2    2    8    8 =TEXT|Mark.McGwire's
   2   16   22   22 =FOLD|\x0a
   3    0   23   23 =DENT|..
   3    2   25   25 =TEXT|year.was.crippled
   3   19   42   42 =FOLD|\x0a
   4    0   43   43 =DENT|..
   4    2   45   45 =TEXT|by.a.knee.injury.
   4   19   62   62 =NEWL|\x0a
   5    0   63   63 -VAL |
   5    0   63   63 -NODE|
   5    0   63   63 -DOC |

perl-pp-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

perl-pplibyaml-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

perl-syck-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

perl-tiny-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

perl-xs-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

perl-yaml-perl

 na
'Mark McGwire\'s year was crippled by a knee injury.
'

py-pyyaml-py

 na
"Mark McGwire's year was crippled by a knee injury.\n"

py-ruamel-py

 na
"Mark McGwire's year was crippled by a knee injury.\n"