YAML stands (ironically?) for "YAML ain't markup language" and was intended as a more human readable substitute for programming data structures. The specifications for YAML, unfortunately are not very human readable, so hopefully these rules will suffice.
1. Indentation means scope. Indenting one or more spaces means that the indented stuff belongs to the less indented thing that precedes it. It doesn't matter how many spaces a child element is indented from a parent, but all children must be indented with the same number of spaces. Example:
is the same as
For special characters indicators in YAML please see the Index on http://www.yaml.org/spec/1.2/spec.html#id2806177
1. Indentation means scope. Indenting one or more spaces means that the indented stuff belongs to the less indented thing that precedes it. It doesn't matter how many spaces a child element is indented from a parent, but all children must be indented with the same number of spaces. Example:
objects: - type: wiki_page ref: foo_page data: name: Foo content: wikicontent:Foo
is the same as
objects: - type: wiki_page ref: foo_page data: name: Foo content: wikicontent:Foo