I emit a YAML document as follows:
YAML::Node doc; // ...populate doc... YAML::Emitter out; out << doc;
Somewhere in the node hierarchy, I have a specific sequence that I would like to emit in the Flow style, and everything else should use the default style settings.
I canโt find a way to do this otherwise than manually emit each node and keep track of the nodes that interest me. It seems like a high price to pay for something relatively simple.
Ideally, I would like to tag the Node tag to say: "If you are emitting, do it with the following style." But I do not think there is support for this.
Can anyone think about how to manually fix the entire document?
Thank you very much.
source share