为什么这不是YAML?

时间:2013-04-20 02:17:33

标签: ruby-on-rails ruby yaml

我无法弄清楚为什么这段代码会在rails YAML解析器中运行。

sections:
  [
    {title: "Journal Entry Testing",
     procedures:
       ["Select a sample of journal entries prepared during the year and determine if they were prepared correctly and approved.”]
    }    
  ]

1 个答案:

答案 0 :(得分:6)

由于不匹配的双引号,放大以突出差异:

[“选择样品......并批准。”]

查看结尾引号是如何“智能”引用的?

修复后,它会在http://yamllint.com/处传递,然后变为实际的YAML。