XmllWriter flushes the stream after every endElement now

This commit is contained in:
Phil Nash 2017-02-06 16:25:36 +00:00
parent 197bf075c4
commit 84af6bc955
1 changed files with 3 additions and 2 deletions

View File

@ -153,12 +153,13 @@ namespace Catch {
newlineIfNecessary();
m_indent = m_indent.substr( 0, m_indent.size()-2 );
if( m_tagIsOpen ) {
stream() << "/>\n";
stream() << "/>";
m_tagIsOpen = false;
}
else {
stream() << m_indent << "</" << m_tags.back() << ">\n";
stream() << m_indent << "</" << m_tags.back() << ">";
}
stream() << std::endl;
m_tags.pop_back();
return *this;
}