From 84af6bc955491d4b2a4c1d3c61e0b3516ce9f298 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 6 Feb 2017 16:25:36 +0000 Subject: [PATCH] XmllWriter flushes the stream after every endElement now --- include/internal/catch_xmlwriter.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_xmlwriter.hpp b/include/internal/catch_xmlwriter.hpp index e5fe177..ecbd737 100644 --- a/include/internal/catch_xmlwriter.hpp +++ b/include/internal/catch_xmlwriter.hpp @@ -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 << "\n"; + stream() << m_indent << ""; } + stream() << std::endl; m_tags.pop_back(); return *this; }