Closed Levi-Armstrong closed 12 months ago
There's no (current) way to do so. The input that's quoted (input_data
) will be implicitly tagged as a string, so yaml-cpp doesn't preserve that fact that it was quoted originally when writing to the emitter.
It looks like there is no way to reproduce the following yaml using the Emitter. I would assume that if this can be parsed then there should be a way to reproduce the exact contents using the Emitter. I tried calling
SetStringFormat(YAML::DoubleQuoted)
but this also put double quotes on the keys which is not the same if you are trying to leverage the tag"!'
to know if it is an explicit string or not.Using
SetStringFormat(YAML::DoubleQuoted)
which does not produce the same.