--- &test-5BVJ
Title: Spec Example 5.7. Block Scalar Indicators
Tags: [ folded, literal, scalar, spec ]
literal: |
some
text
folded: >
some
text
+STR
+DOC
+MAP
=VAL :literal
=VAL |some\ntext\n
=VAL :folded
=VAL >some text\n
-MAP
-DOC
-STR
{
"folded": "some text\n",
"literal": "some\ntext\n"
}
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|literal
1 7 7 7 -VAL |
1 7 7 7 -NODE|
1 7 7 7 =SYNX|:
1 8 8 8 +NODE|
1 8 8 8 =WSPC|.
1 9 9 9 +VAL |
1 9 9 9 =SYNX||
1 10 10 10 =EOL |\x0a
2 0 11 11 =DENT|..
2 2 13 13 =TEXT|some
2 6 17 17 =NEWL|\x0a
3 0 18 18 =DENT|..
3 2 20 20 =TEXT|text
3 6 24 24 =NEWL|\x0a
4 0 25 25 -VAL |
4 0 25 25 -NODE|
4 0 25 25 -PAIR|
4 0 25 25 +PAIR|
4 0 25 25 +NODE|
4 0 25 25 +VAL |
4 0 25 25 =TEXT|folded
4 6 31 31 -VAL |
4 6 31 31 -NODE|
4 6 31 31 =SYNX|:
4 7 32 32 +NODE|
4 7 32 32 =WSPC|.
4 8 33 33 +VAL |
4 8 33 33 =SYNX|>
4 9 34 34 =EOL |\x0a
5 0 35 35 =DENT|..
5 2 37 37 =TEXT|some
5 6 41 41 =FOLD|\x0a
6 0 42 42 =DENT|..
6 2 44 44 =TEXT|text
6 6 48 48 =NEWL|\x0a
7 0 49 49 -VAL |
7 0 49 49 -NODE|
7 0 49 49 -PAIR|
7 0 49 49 -MAP |
7 0 49 49 -NODE|
7 0 49 49 -DOC |
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{
'folded' => 'some text
',
'literal' => 'some
text
'
}
na
{'folded': 'some text\n', 'literal': 'some\ntext\n'}
na
{'folded': 'some text\n', 'literal': 'some\ntext\n'}