From: Dave Thomas Date: 2003-12-14T05:32:44+09:00 Subject: Re: YAML treatment of '#' character in middle of a string On Dec 12, 2003, at 12:33, why the lucky stiff wrote: > Treatment of the comment character has long been discussed on the > yaml-core > list and has changed a bit in the spec over this year. Currently, any > pound > character which is preceded by space trims to the next newline as a > comment. > Yes, quotes can overcome this weakness. > > I do agree with the rule. I can see compelling reasons to follow plain > scalars with descriptive comments. I don't see the compelling reason > for the > space-pound in plain scalars. But if you have a good use case, hop on > yaml-core ML and lay it out for us, Brother Black. > As it stands right now, though, yaml can't read it's own output, which strikes me as a fairly major issue; require 'yaml' fred = "Call the method #dave" str = YAML.dump(fred) fred1 = YAML.load(str) puts fred1 # => 'Call the method ' For me, this, combined with the stuct bug I mentioned over on -core, makes YAML unusable for my RI work. At the very least, shouldn't ::dump escape the output? Cheers Dave