-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
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
foo:
# Comment
bar: true
but it outputs
foo:
# Comment
bar: true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels