Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (47 sloc) 557 Bytes
=== Blank lines
--- from: IRC discussion with leont
--- tags: comment scalar
--- 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