rugk / crops-parser

🌱🍎🍆 A shell script to parse the data by the Food and Agriculture Organization of the United Nations on crops/fruits.
Other
15 stars 4 forks source link

'NO' #48

Closed westnordost closed 7 years ago

westnordost commented 7 years ago

Because YAML is weird, you need to put 'NO' (Norway) in '' in the output.

rugk commented 7 years ago

Hell, that is strange. Because I am curious: Any explanation why? (i.e. a link?)

westnordost commented 7 years ago

Yaml parsers are so "smart" to interpret yes, no, YES, NO, false, FALSE, true, TRUE as booleans, even if it is a key in a map. This "feature" has been removed in the newest version of the YAML standard, but few/no libraries actually use the newest standard.

rugk commented 7 years ago

Oh dear… Thanks for the explanation though.

rugk commented 2 years ago

For later reference btw: https://noyaml.com/ :upside_down_face: :sweat_smile: