jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.78k forks source link

FeatureReq: assign `YAML::Emitter` to `YAML::Node` (multiline string to yaml-cpp node) #1237

Open shemeshg opened 8 months ago

shemeshg commented 8 months ago

I'd like to be able to:

  YAML::Emitter out;
  out << YAML::Literal << val;            
  yamlContent[key] = out

See also: https://stackoverflow.com/questions/22231418/adding-multiline-string-to-a-yaml-cpp-node