Rewrote the output so that it emits correct YAML.

Fixed a bug in the last newline of a block folded scalar.
This commit is contained in:
beder
2008-07-05 05:28:23 +00:00
parent 5feaef3748
commit ba97c9f719
12 changed files with 98 additions and 145 deletions

View File

@@ -73,10 +73,7 @@ int main()
YAML::Node doc;
parser.GetNextDocument(doc);
Level level;
doc >> level;
std::cout << level;
std::cout << doc;
} catch(YAML::Exception&) {
std::cout << "Error parsing the yaml!\n";
}