Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
40 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
You can’t perform that action at this time.