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.
This commit is contained in:
Andriy Berestovskyy 2019-01-13 15:26:49 +01:00 committed by Roman Lebedev
parent eec9a8e497
commit 4b9f43e2c4
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
# Please keep the list sorted.
Albert Pretorius <pretoalb@gmail.com>
Andriy Berestovskyy <berestovskyy@gmail.com>
Arne Beer <arne@twobeer.de>
Carto
Christopher Seymour <chris.j.seymour@hotmail.com>

View File

@ -23,6 +23,7 @@
# Please keep the list sorted.
Albert Pretorius <pretoalb@gmail.com>
Andriy Berestovskyy <berestovskyy@gmail.com>
Arne Beer <arne@twobeer.de>
Billy Robert O'Neal III <billy.oneal@gmail.com> <bion@microsoft.com>
Chris Kennelly <ckennelly@google.com> <ckennelly@ckennelly.com>

View File

@ -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<Run>& reports) {