-
Notifications
You must be signed in to change notification settings - Fork 61
/
6HB6.yaml
55 lines (55 loc) · 1.18 KB
/
6HB6.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: Spec Example 6.1. Indentation Spaces
from: http://www.yaml.org/spec/1.2/spec.html#id2777865
tags: comment flow spec indent upto-1.2 whitespace
yaml: |2
# Leading comment line spaces are
# neither content nor indentation.
␣␣␣␣
Not indented:
By one space: |
By four
spaces
Flow style: [ # Leading spaces
By two, # in flow style
Also by two, # are neither
—»Still by two # content nor
] # indentation.
tree: |
+STR
+DOC
+MAP
=VAL :Not indented
+MAP
=VAL :By one space
=VAL |By four\n spaces\n
=VAL :Flow style
+SEQ []
=VAL :By two
=VAL :Also by two
=VAL :Still by two
-SEQ
-MAP
-MAP
-DOC
-STR
json: |
{
"Not indented": {
"By one space": "By four\n spaces\n",
"Flow style": [
"By two",
"Also by two",
"Still by two"
]
}
}
dump: |
Not indented:
By one space: |
By four
spaces
Flow style:
- By two
- Also by two
- Still by two