mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-29 16:09:30 +00:00
Don't indent stdout/ stderr in JUnit reporter
This commit is contained in:
parent
2846367109
commit
37f3820747
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue