1
を解析しません。 YAMLの「奇妙さ」ですが、なぜ.....?YAML複数行の文字列は、私が最初にYAML複数行の文字列を解析しますが、 値として埋め込まれた第2 1を解析しない理由を理解していない
を解析しません。 YAMLの「奇妙さ」ですが、なぜ.....?YAML複数行の文字列は、私が最初にYAML複数行の文字列を解析しますが、 値として埋め込まれた第2 1を解析しない理由を理解していない
In YAML it is not allowed to have block style nodes nested within flow style。 xmas
の値はフロースタイルマッピングで、another_ignore_newlines
のブロックスタイルスカラー値(折り返しリテラル)を含みます。 より前の行には、末尾に,
がなければなりません。
"Dec 25"
後も、おそらく末尾のカンマを{
と}
を除去して、試してみてください:
ignore_newlines: >
this is really a
single line of text
despite appearances
xmas:
day: "Dec 25"
another_ignore_newlines: >
this is really a
single line of text
despite appearances
cleanup: "Dec 26"