Commit ad2b9fba authored by jbeder's avatar jbeder
Browse files

Fixed tag output bug

parent 4b45a718
......@@ -136,7 +136,11 @@ namespace YAML
// write tag
if(m_tag != "") {
out << std::string("!<") << m_tag << std::string("> ");
// put the tag in the "proper" brackets
if(m_tag.substr(0, 2) == "!<" && m_tag.substr(m_tag.size() - 1) == ">")
out << m_tag;
else
out << std::string("!<") << m_tag << std::string("> ");
startedLine = true;
onlyOneCharOnLine = false;
}
......
......@@ -2,4 +2,4 @@
%TAG ! !howdy
---
- basic node
- ! yeah baby
\ No newline at end of file
- ! yeah baby
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment