yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

Emitter indentation does not seem to do anything

Open eligbr opened this issue 3 years ago • 0 comments

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

eligbr avatar Oct 17 '22 08:10 eligbr