majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Ability to change how YAML::Null is emitted #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. emmiter << YAML::Null

What is the expected output? What do you see instead?

{{{
~
}}}

What version of the product are you using? On what operating system?
0.2.7

Please provide any additional information below.

It'd be nice if you could modify how YAML::Null is represented, I have a file I 
have to generate that way:

{{{
- foo: 123
- bar:
- baz: "yeah"
}}}

To mean, "no values" for "bar"... right now this emits "- bar: ~".

Original issue reported on code.google.com by philippe...@gmail.com on 29 Nov 2011 at 4:16

GoogleCodeExporter commented 9 years ago
Good idea!

Original comment by jbe...@gmail.com on 1 Dec 2011 at 6:08

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 19 May 2012 at 9:07

GoogleCodeExporter commented 9 years ago
This issue has moved to github: https://github.com/jbeder/yaml-cpp/issues/137

Original comment by jbe...@gmail.com on 30 Mar 2015 at 1:26