mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
Tweaked spacing for comments
This commit is contained in:
@@ -6,9 +6,10 @@ int main()
|
||||
YAML::Emitter out;
|
||||
out << YAML::Comment("Hello");
|
||||
out << YAML::BeginSeq;
|
||||
out << "item 1";
|
||||
out << YAML::BeginMap;
|
||||
out << "pens" << "a";
|
||||
out << YAML::Comment("Hello");
|
||||
out << YAML::Anchor("a") << YAML::Comment("anchor") << "item 1" << YAML::Comment("a");
|
||||
out << YAML::BeginMap << YAML::Comment("b");
|
||||
out << "pens" << YAML::Comment("foo") << "a" << YAML::Comment("bar");
|
||||
out << "pencils" << "b";
|
||||
out << YAML::EndMap;
|
||||
out << "item 2";
|
||||
|
Reference in New Issue
Block a user