Added more tests for the newline, and disallowed newlines after implicit block keys

This commit is contained in:
Jesse Beder
2010-10-22 03:53:33 +00:00
parent 1e4210401f
commit 6b7cb45ac8
5 changed files with 58 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ namespace YAML
void EmitFromEvents::EmitProps(const std::string& tag, anchor_t anchor)
{
if(!tag.empty())
if(!tag.empty() && tag != "?")
m_emitter << VerbatimTag(tag);
if(anchor)
m_emitter << Anchor(ToString(anchor));