[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e8cc9e0 3/3: Slightly improve demonstration f
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e8cc9e0 3/3: Slightly improve demonstration formatting |
Date: |
Sat, 8 Sep 2018 05:02:20 -0400 (EDT) |
branch: master
commit e8cc9e01acb040f156c52d9348f3aa84859a0663
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Slightly improve demonstration formatting
---
report_table_test.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/report_table_test.cpp b/report_table_test.cpp
index 7cad9bd..0586abc 100644
--- a/report_table_test.cpp
+++ b/report_table_test.cpp
@@ -432,14 +432,14 @@ std::string paginate(int total_rows, int rows_per_group,
int max_lines_per_page)
for(int line = 0; line < max_lines; ++line)
{
oss
- << " page " << std::setw(3) << page
- << " line " << std::setw(3) << line
- << " line_count " << std::setw(3) << line_count
+ << " page " << std::setw(3) << page
+ << ", line " << std::setw(3) << line
+ << ", line_count " << std::setw(3) << line_count
; // No newline yet.
if(rows_per_group != line % (1 + rows_per_group))
{
// F2: print a row of data
- oss << " row " << std::setw(3) << row << '\n';
+ oss << ", row " << std::setw(3) << row << '\n';
++row;
}
else