Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorPhil Nash2012-11-22 09:02:24 +0000
committerPhil Nash2012-11-22 09:02:24 +0000
commit37f3820747eb7fd4e1d937e100de6f5fafcdb83c (patch)
tree09ddba9c3b546fcf7341e48712b9c2a747180a3e /include/internal
parent28463671094abb8387f71c6783cf7ee3a3722ede (diff)
downloadcatch3-37f3820747eb7fd4e1d937e100de6f5fafcdb83c.tar.gz
Don't indent stdout/ stderr in JUnit reporter
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_xmlwriter.hpp8
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;