yaml-cpp
yaml-cpp copied to clipboard
Emitter indentation does not seem to do anything
Hi, I am trying to emit an indented YAML file using emitter::Indent(x) but I get the output all in one line. Am I doing something wrong?
I tried a workaround for now - I used nlholman::json library, I emitted the YAML double quoted to emulate a json and then dumped the json with the json library and got correct indentation, but the double quoting algorithm seems to double quote values as well which is not good...
Would appreciate any help, Thanks