diff options
| author | Phil Nash | 2012-11-22 09:02:24 +0000 |
|---|---|---|
| committer | Phil Nash | 2012-11-22 09:02:24 +0000 |
| commit | 37f3820747eb7fd4e1d937e100de6f5fafcdb83c (patch) | |
| tree | 09ddba9c3b546fcf7341e48712b9c2a747180a3e /include/internal | |
| parent | 28463671094abb8387f71c6783cf7ee3a3722ede (diff) | |
| download | catch3-37f3820747eb7fd4e1d937e100de6f5fafcdb83c.tar.gz | |
Don't indent stdout/ stderr in JUnit reporter
Diffstat (limited to 'include/internal')
| -rw-r--r-- | include/internal/catch_xmlwriter.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/internal/catch_xmlwriter.hpp b/include/internal/catch_xmlwriter.hpp index f929f601..98e827f4 100644 --- a/include/internal/catch_xmlwriter.hpp +++ b/include/internal/catch_xmlwriter.hpp @@ -34,8 +34,8 @@ namespace Catch { m_writer->endElement(); } - ScopedElement& writeText( const std::string& text ) { - m_writer->writeText( text ); + ScopedElement& writeText( const std::string& text, bool indent = true ) { + m_writer->writeText( text, indent ); return *this; } @@ -131,11 +131,11 @@ namespace Catch { return *this; } - XmlWriter& writeText( const std::string& text ) { + XmlWriter& writeText( const std::string& text, bool indent = true ) { if( !text.empty() ){ bool tagWasOpen = m_tagIsOpen; ensureTagClosed(); - if( tagWasOpen ) + if( tagWasOpen && indent ) stream() << m_indent; writeEncodedText( text ); m_needsNewline = true; |