mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Added more tests for the newline, and disallowed newlines after implicit block keys
This commit is contained in:
@@ -47,11 +47,10 @@ int main(int argc, char **argv)
|
||||
YAML::Parser parser(input);
|
||||
YAML::Node doc;
|
||||
NullEventHandler handler;
|
||||
// while(parser.GetNextDocument(doc)) {
|
||||
while(parser.HandleNextDocument(handler)) {
|
||||
// YAML::Emitter emitter;
|
||||
// emitter << doc;
|
||||
// std::cout << emitter.c_str() << "\n";
|
||||
while(parser.GetNextDocument(doc)) {
|
||||
YAML::Emitter emitter;
|
||||
emitter << doc;
|
||||
std::cout << emitter.c_str() << "\n";
|
||||
}
|
||||
} catch(const YAML::Exception& e) {
|
||||
std::cerr << e.what() << "\n";
|
||||
|
Reference in New Issue
Block a user