Commit 4b9f43e2 by Andriy Berestovskyy Committed by Roman Lebedev

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.
parent eec9a8e4
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
# Please keep the list sorted. # Please keep the list sorted.
Albert Pretorius <pretoalb@gmail.com> Albert Pretorius <pretoalb@gmail.com>
Andriy Berestovskyy <berestovskyy@gmail.com>
Arne Beer <arne@twobeer.de> Arne Beer <arne@twobeer.de>
Carto Carto
Christopher Seymour <chris.j.seymour@hotmail.com> Christopher Seymour <chris.j.seymour@hotmail.com>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
# Please keep the list sorted. # Please keep the list sorted.
Albert Pretorius <pretoalb@gmail.com> Albert Pretorius <pretoalb@gmail.com>
Andriy Berestovskyy <berestovskyy@gmail.com>
Arne Beer <arne@twobeer.de> Arne Beer <arne@twobeer.de>
Billy Robert O'Neal III <billy.oneal@gmail.com> <bion@microsoft.com> Billy Robert O'Neal III <billy.oneal@gmail.com> <bion@microsoft.com>
Chris Kennelly <ckennelly@google.com> <ckennelly@ckennelly.com> Chris Kennelly <ckennelly@google.com> <ckennelly@ckennelly.com>
......
...@@ -64,9 +64,8 @@ void ConsoleReporter::PrintHeader(const Run& run) { ...@@ -64,9 +64,8 @@ void ConsoleReporter::PrintHeader(const Run& run) {
str += " UserCounters..."; str += " UserCounters...";
} }
} }
str += "\n";
std::string line = std::string(str.length(), '-'); 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) { void ConsoleReporter::ReportRuns(const std::vector<Run>& reports) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment