Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
56 lines (47 sloc) 576 Bytes
=== Blank lines
--- from: IRC discussion with leont
--- tags: comment literal scalar whitespace
--- in-yaml
foo: 1
bar: 2
<SPC><SPC><SPC><SPC>
text: |
a
<SPC><SPC><SPC><SPC>
b
c
<SPC>
d
--- in-json
{
"foo": 1,
"bar": 2,
"text": "a\n \nb\n\nc\n\nd\n"
}
--- out-yaml
foo: 1
bar: 2
# XXX libyaml changes | scalar events to " emission
text: "a\n \nb\n\nc\n\nd\n"
--- emit-yaml
foo: 1
bar: 2
text: |
a
<SPC><SPC><SPC><SPC>
b
c
d
--- test-event
+STR
+DOC
+MAP
=VAL :foo
=VAL :1
=VAL :bar
=VAL :2
=VAL :text
=VAL |a\n \nb\n\nc\n\nd\n
-MAP
-DOC
-STR
You can’t perform that action at this time.