From: caleb clausen Date: 2009-09-30T02:23:47+09:00 Subject: [ruby-core:25851] [Bug #1311] YAML::dump creates strings YAML::load cannot parse Issue #1311 has been updated by caleb clausen. File test_yaml2.patch added File syck_scan_scalar2.patch added I have also been bitten by this same bug. In addition to the cases described above, this problem also occurs when the input contains just a single newline (in either unix or dos style). The patch supplied by Dave B fixes the case of a string containing just a single unix newline, but fails to fix a string with just a single dos newline (and probably the other cases initially reported, if the unix newlines are converted to dos newlines). I'm attaching slightly a slightly modified patches, which addresses the dos newline issue, and tests single dos and unix newlines. This problem also occurs in ruby 1.9. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1311 ---------------------------------------- http://redmine.ruby-lang.org