From: mike@... (Mike Stok) Date: 2003-12-13T01:32:01+09:00 Subject: Re: YAML treatment of '#' character in middle of a string In article , David A. Black wrote: >Hi -- > >I'm wondering whether the "#" and everything after it are >really supposed to be taken out of the string in this >example: > > irb(main):015:0> YAML.load("---\nstring: one # two") > => {"string"=>"one"} > >I guess I can wrap it all in quotation marks, but I didn't >think I had to. http://www.yaml.org/spec/#.-syntax-throw-Throwaway-comments- suggests this is the right behaviour; so the quites are necessary. Hope this helps, Mike -- mike@stok.co.uk | The "`Stok' disclaimers" apply. http://www.stok.co.uk/~mike/ | GPG PGP Key 1024D/059913DA mike@exegenix.com | Fingerprint 0570 71CD 6790 7C28 3D60 http://www.exegenix.com/ | 75D2 9EC4 C1C0 0599 13DA