%YAML 1.1 --- - name: emit-block-scalar-in-simple-key-context-bug yaml: | ? |- foo : |- bar tree: | +STR +DOC +MAP =VAL |foo =VAL |bar -MAP -DOC -STR - name: emit-block-scalar-in-simple-key-context-bug-canonical yaml: | %YAML 1.1 --- !!map { ? !!str "foo" : !!str "bar" } tree: | +STR +DOC --- +MAP {} =VAL "foo =VAL "bar -MAP -DOC -STR