From 4b9f43e2c4ea559c59f5d86561c02207008a15ac Mon Sep 17 00:00:00 2001 From: Andriy Berestovskyy Date: Sun, 13 Jan 2019 15:26:49 +0100 Subject: [PATCH] Fix header lines length (#752) Commit 17a012d7 added a newline to the str, so the line built from str.length() is one character longer than it should be. --- AUTHORS | 1 + CONTRIBUTORS | 1 + src/console_reporter.cc | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 09e2e055..ef3051a1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,6 +9,7 @@ # Please keep the list sorted. Albert Pretorius +Andriy Berestovskyy Arne Beer Carto Christopher Seymour diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ee74ff88..d0c31df1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -23,6 +23,7 @@ # Please keep the list sorted. Albert Pretorius +Andriy Berestovskyy Arne Beer Billy Robert O'Neal III Chris Kennelly diff --git a/src/console_reporter.cc b/src/console_reporter.cc index ca364727..cc8ae276 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -64,9 +64,8 @@ void ConsoleReporter::PrintHeader(const Run& run) { str += " UserCounters..."; } } - str += "\n"; std::string line = std::string(str.length(), '-'); - GetOutputStream() << line << "\n" << str << line << "\n"; + GetOutputStream() << line << "\n" << str << "\n" << line << "\n"; } void ConsoleReporter::ReportRuns(const std::vector& reports) {