kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Outputting the string "-" results in a sequence and not a properly quoted string #144

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to output a map with a key whose value is "-" it doesn't get quoted 
and thus looks like a sequence as opposed to a string value. Here's a simple 
reproduce: 

YAML::Emitter Output;
    using namespace YAML;
    Output << BeginMap;
    Output << Key << "key" << Value << "-";
    Output << EndMap;

Original issue reported on code.google.com by sherief....@gmail.com on 11 Jan 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Thanks! Fixed, r81d97f6cba25.

Original comment by jbe...@gmail.com on 11 Jan 2012 at 10:39