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

View File

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