Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (32 sloc) 447 Bytes
=== Spec Example 5.7. Block Scalar Indicators
--- from: http://www.yaml.org/spec/1.2/spec.html#id2773653
--- tags: spec literal folded scalar
--- in-yaml
literal: |
some
text
folded: >
some
text
--- in-json
{
"literal": "some\ntext\n",
"folded": "some text\n"
}
--- out-yaml
literal: |
some
text
folded: >
some text
--- test-event
+STR
+DOC
+MAP
=VAL :literal
=VAL |some\ntext\n
=VAL :folded
=VAL >some text\n
-MAP
-DOC
-STR
You can’t perform that action at this time.