--- &test-5GBF
Title: Spec Example 6.5. Empty Lines
Tags: [ double, literal, scalar, spec, upto-1.2, whitespace ]
Folding:
"Empty line
as a line feed"
Chomping: |
Clipped empty lines
+STR
+DOC
+MAP
=VAL :Folding
=VAL "Empty line\nas a line feed
=VAL :Chomping
=VAL |Clipped empty lines\n
-MAP
-DOC
-STR
{
"Chomping": "Clipped empty lines\n",
"Folding": "Empty line\nas a line feed"
}
json_diff
{
"Chomping": "Clipped empty lines\n",
"Folding": "Empty line \t as a line feed"
}
error
YAML::Tiny failed to classify line ' "Empty line' at /yaml/bin/perl-tiny-json line 12.
error
YAML::Tiny failed to classify line ' "Empty line' at /yaml/bin/perl-tiny-perl line 15.
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 2
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 2
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|Folding
1 7 7 7 -VAL |
1 7 7 7 -NODE|
1 7 7 7 =SYNX|:
1 8 8 8 =EOL |\x0a
2 0 9 9 =DENT|.
2 1 10 10 =WSPC|.
2 2 11 11 +NODE|
2 2 11 11 +VAL |
2 2 11 11 =SYNX|"
2 3 12 12 =TEXT|Empty.line
2 13 22 22 =EOL |\x0a
3 0 23 23 =DENT|.
3 1 24 24 =WSPC|..\x09
3 4 27 27 =NEWL|\x0a
4 0 28 28 =DENT|.
4 1 29 29 =WSPC|.
4 2 30 30 =TEXT|as.a.line.feed
4 16 44 44 =SYNX|"
4 17 45 45 -VAL |
4 17 45 45 -NODE|
4 17 45 45 =EOL |\x0a
5 0 46 46 -PAIR|
5 0 46 46 +PAIR|
5 0 46 46 +NODE|
5 0 46 46 +VAL |
5 0 46 46 =TEXT|Chomping
5 8 54 54 -VAL |
5 8 54 54 -NODE|
5 8 54 54 =SYNX|:
5 9 55 55 +NODE|
5 9 55 55 =WSPC|.
5 10 56 56 +VAL |
5 10 56 56 =SYNX||
5 11 57 57 =EOL |\x0a
6 0 58 58 =DENT|..
6 2 60 60 =TEXT|Clipped.empty.lines
6 21 79 79 =NEWL|\x0a
7 0 80 80 -VAL |
7 0 80 80 =DENT|.
7 1 81 81 =EOL |\x0a
8 0 82 82 =EOL |\x0a
9 0 83 83 -NODE|
9 0 83 83 -PAIR|
9 0 83 83 -MAP |
9 0 83 83 -NODE|
9 0 83 83 -DOC |
na
{
'Chomping' => 'Clipped empty lines
',
'Folding' => 'Empty line
as a line feed'
}
na
{
'Chomping' => 'Clipped empty lines
',
'Folding' => 'Empty line
as a line feed'
}
na
{
'Chomping' => 'Clipped empty lines
',
'Folding' => 'Empty line as a line feed'
}
na
{
'Chomping' => 'Clipped empty lines
',
'Folding' => 'Empty line
as a line feed'
}
na
{'Chomping': 'Clipped empty lines\n', 'Folding': 'Empty line\nas a line feed'}
na
{'Chomping': 'Clipped empty lines\n', 'Folding': 'Empty line\nas a line feed'}