Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (36 sloc) 451 Bytes
=== Spec Example 8.4. Chomping Final Line Break
--- from: http://www.yaml.org/spec/1.2/spec.html#id2795034
--- tags: spec literal scalar
--- in-yaml
strip: |-
text
clip: |
text
keep: |+
text
--- in-json
{
"strip": "text",
"clip": "text\n",
"keep": "text\n"
}
--- out-yaml
strip: |-
text
clip: |
text
keep: |
text
--- test-event
+STR
+DOC
+MAP
=VAL :strip
=VAL |text
=VAL :clip
=VAL |text\n
=VAL :keep
=VAL |text\n
-MAP
-DOC
-STR