So maybe I'm really doing something very wrong here but when I try to place comments inside a map (I want a comment right before a key) the comments are not indented at all.
So I tried this code
YAML::Emitter out;
out << YAML::BeginMap << YAML::Key << "foo"
<< YAML::BeginMap << YAML::Comment("Comment")
<< YAML::Key << "bar" << YAML::Value << true
<< YAML::EndMap << YAML::EndMap;
I would expect this to output
but it outputs
So maybe I'm really doing something very wrong here but when I try to place comments inside a map (I want a comment right before a key) the comments are not indented at all.
So I tried this code
I would expect this to output
but it outputs