From: Xavier Date: 2004-05-12T07:58:52+09:00 Subject: Problem with yaml and lines beginning with a colon Hi all, For some reason, yaml reads strings beginning with a colon as symbols which leads to 'cannot dup symbol' exceptions. $ ruby -v ruby 1.8.1 (2004-04-24) [i686-linux-gnu] $ irb irb(main):001:0> require 'yaml' => true irb(main):002:0> YAML::load(" :0 local".to_yaml) => " :0 local" irb(main):003:0> YAML::load(":0 local".to_yaml) => :"0 local" Note the first string has a leading space and the second has not. The latter is not read back correctly. Is this is a bug? Does anyone know a workaround? Thanks.