Replaced some uses of tbc_text_format with TextFlow (from Clara)

This commit is contained in:
Phil Nash
2017-07-18 20:27:42 +01:00
parent d43024ff6b
commit b0e3f45a22
5 changed files with 41 additions and 40 deletions

View File

@@ -23,6 +23,8 @@
namespace Catch {
using namespace clara::TextFlow;
struct TeamCityReporter : StreamingReporterBase {
TeamCityReporter( ReporterConfig const& _config )
: StreamingReporterBase( _config )
@@ -194,9 +196,9 @@ namespace Catch {
i+=2;
else
i = 0;
os << Text( _string, TextAttributes()
.setIndent( indent+i)
.setInitialIndent( indent ) ) << "\n";
os << Column( _string )
.indent( indent+i)
.initialIndent( indent ) << "\n";
}
private:
bool m_headerPrintedForThisSection = false;