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; }