majintao0131 / yaml-cpp

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

Newline string is read as an empty string #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a node has the value "\n", it's serialized in YAML as "\x0a". When that same 
file is read again it's read as "" (an empty string) and not "\n". 

To reproduce: 

Output << Key << "foo" << Value << DoubleQuoted << "\n";

Then attempt reading the resulting YAML file.

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

GoogleCodeExporter commented 9 years ago
Nice catch! Fixed, r23bbb12da47f.

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