[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 06/08: src/preproc/tbl/table.cpp: Fix code style nits.
From: |
G. Branden Robinson |
Subject: |
[groff] 06/08: src/preproc/tbl/table.cpp: Fix code style nits. |
Date: |
Thu, 1 Dec 2022 03:22:24 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 33a3f041de684e9bdc03453f1ee18eaa1dcc74f7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 30 23:27:57 2022 -0600
src/preproc/tbl/table.cpp: Fix code style nits.
* Wrap long input line.
* Drop braces around single-statement branch. Also see commit
21b07d7b64, 2017-11-11.
---
src/preproc/tbl/table.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index 798817aa3..0ca74e31b 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -1246,8 +1246,8 @@ table::table(int nc, unsigned f, int ls, char dpc)
: nrows(0), ncolumns(nc), linesize(ls), decimal_point_char(dpc),
vrule_list(0), stuff_list(0), span_list(0),
entry_list(0), entry_list_tailp(&entry_list), entry(0),
- vline(0), row_is_all_lines(0), left_separation(0), right_separation(0),
- total_separation(0), allocated_rows(0), flags(f)
+ vline(0), row_is_all_lines(0), left_separation(0),
+ right_separation(0), total_separation(0), allocated_rows(0), flags(f)
{
minimum_width = new string[ncolumns];
column_separation = ncolumns > 1 ? new int[ncolumns - 1] : 0;
@@ -2957,9 +2957,8 @@ void table::do_top()
prints(".ls\n"
".vs\n");
}
- else if (flags & (ALLBOX | BOX)) {
+ else if (flags & (ALLBOX | BOX))
print_single_hline(0);
- }
//printfs(".mk %1\n", row_top_reg(0));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 06/08: src/preproc/tbl/table.cpp: Fix code style nits.,
G. Branden Robinson <=