# YAML Test Matrix

--- &test-F6MC
  Title: More indented lines at the beginning of folded block scalars
  Tags: [ folded, indent ]

YAML

---
a: >2
   more indented
  regular
b: >2


   more indented
  regular

Expected Events

+STR
+DOC ---
+MAP
=VAL :a
=VAL > more indented\nregular\n
=VAL :b
=VAL >\n\n more indented\nregular\n
-MAP
-DOC
-STR

Expected JSON

{
"a": " more indented\nregular\n",
"b": "\n\n more indented\nregular\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-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

 error
YAML::Tiny found bad indenting in line '  regular' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny found bad indenting in line '  regular' at /yaml/bin/perl-tiny-perl line 15.

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 =EOL |\x0a
   2    0    4    4 +MAP |
   2    0    4    4 +PAIR|
   2    0    4    4 +NODE|
   2    0    4    4 +VAL |
   2    0    4    4 =TEXT|a
   2    1    5    5 -VAL |
   2    1    5    5 -NODE|
   2    1    5    5 =SYNX|:
   2    2    6    6 +NODE|
   2    2    6    6 =WSPC|.
   2    3    7    7 +VAL |
   2    3    7    7 =SYNX|>
   2    4    8    8 =SYNX|2
   2    5    9    9 =EOL |\x0a
   3    0   10   10 =DENT|..
   3    2   12   12 =TEXT|.more.indented
   3   16   26   26 =NEWL|\x0a
   4    0   27   27 =DENT|..
   4    2   29   29 =TEXT|regular
   4    9   36   36 =NEWL|\x0a
   5    0   37   37 -VAL |
   5    0   37   37 -NODE|
   5    0   37   37 -PAIR|
   5    0   37   37 +PAIR|
   5    0   37   37 +NODE|
   5    0   37   37 +VAL |
   5    0   37   37 =TEXT|b
   5    1   38   38 -VAL |
   5    1   38   38 -NODE|
   5    1   38   38 =SYNX|:
   5    2   39   39 +NODE|
   5    2   39   39 =WSPC|.
   5    3   40   40 +VAL |
   5    3   40   40 =SYNX|>
   5    4   41   41 =SYNX|2
   5    5   42   42 =EOL |\x0a
   6    0   43   43 =NEWL|\x0a
   7    0   44   44 =NEWL|\x0a
   8    0   45   45 =DENT|..
   8    2   47   47 =TEXT|.more.indented
   8   16   61   61 =NEWL|\x0a
   9    0   62   62 =DENT|..
   9    2   64   64 =TEXT|regular
   9    9   71   71 =NEWL|\x0a
  10    0   72   72 -VAL |
  10    0   72   72 -NODE|
  10    0   72   72 -PAIR|
  10    0   72   72 -MAP |
  10    0   72   72 -NODE|
  10    0   72   72 -DOC |

perl-pp-perl

 na
{
  'a' => ' more indented
regular
',
  'b' => '

 more indented
regular
'
}

perl-pplibyaml-perl

 na
{
  'a' => ' more indented
regular
',
  'b' => '

 more indented
regular
'
}

perl-syck-perl

 na
{
  'a' => ' more indented
regular
',
  'b' => '

 more indented
regular
'
}

perl-xs-perl

 na
{
  'a' => ' more indented
regular
',
  'b' => '

 more indented
regular
'
}

perl-yaml-perl

 na
{
  'a' => ' more indented
regular
',
  'b' => '

 more indented
regular
'
}

py-pyyaml-py

 na
{'a': ' more indented\nregular\n', 'b': '\n\n more indented\nregular\n'}

py-ruamel-py

 na
{'a': ' more indented\nregular\n', 'b': '\n\n more indented\nregular\n'}