%YAML 1.1 --- - name: spec-09-23 yaml: " # Strip\n # Comments:\nstrip: |-\n # text\P \L # Clip\n # comments:\n\ \Nclip: |\n # text\N \P # Keep\n # comments:\n\Nkeep: |+\n # text\L\N # Trail\n\ \ # comments.\n" - name: spec-09-23-canonical yaml: | %YAML 1.1 --- !!map { ? !!str "strip" : !!str "# text", ? !!str "clip" : !!str "# text\n", ? !!str "keep" : !!str "# text\L\n", } # FIXME # tree: | # +STR # +DOC --- # +MAP {} # =VAL "strip # =VAL "# text # =VAL "clip # =VAL "# text\n # =VAL "keep # =VAL "# text\L\n # -MAP # -DOC # -STR