Fix input strings with quotes giving "!" tagging artifacts.

This commit is contained in:
butataatawa
2016-12-02 15:58:48 +01:00
committed by Jesse Beder
parent 1f4b6d5c85
commit d025040049
2 changed files with 7 additions and 1 deletions

View File

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