Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (32 sloc) 628 Bytes
=== Spec Example 5.12. Tabs and Spaces
--- from: http://www.yaml.org/spec/1.2/spec.html#id2775350
--- tags: spec whitespace upto-1.2
--- in-yaml(<)
# Tabs and spaces
quoted: "Quoted <TAB>"
block:<TAB>|
void main() {
<TAB>printf("Hello, world!\n");
}
--- in-json
{
"quoted": "Quoted \t",
"block": "void main() {\n\tprintf(\"Hello, world!\\n\");\n}\n"
}
--- out-yaml
quoted: "Quoted \t"
block: |
void main() {
<TAB>printf("Hello, world!\n");
}
--- test-event
+STR
+DOC
+MAP
=VAL :quoted
=VAL "Quoted \t
=VAL :block
=VAL |void main() {\n\tprintf("Hello, world!\\n");\n}\n
-MAP
-DOC
-STR
You can’t perform that action at this time.