[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62471] [tbl] horizontal and vertical rules are drawn too long in n
From: |
G. Branden Robinson |
Subject: |
[bug #62471] [tbl] horizontal and vertical rules are drawn too long in nroff mode |
Date: |
Sat, 30 Dec 2023 20:07:04 -0500 (EST) |
Update of bug#62471 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.24.0
_______________________________________________________
Follow-up Comment #9:
commit 6ccdab9d64864b148781a5819b567518130324ed
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Fri Dec 29 23:18:14 2023 -0600
[tbl]: Fix Savannah #62471 (hrules in nroff mode).
This fixes the last problem I know of that keeps man pages from freely
using the full width of the terminal. (You can still cause lines to
overrun manually, of course.)
* src/preproc/tbl/table.h (class table): Define new enumeration
constant, `HAS_DATA_HRULE`, to keep track of whether a table uses a
horizontal rule as a data row.
* src/preproc/tbl/main.cpp (process_data): Set it when encountering
appropriate input.
* src/preproc/tbl/table.cpp (table::compute_overall_width): Check for it
if the table is not already boxed, and emit output to reduce the line
length by one in nroff mode.
commit 028f80cf2da8301e235b049c93e49138d0bb44f3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Fri Dec 29 23:10:08 2023 -0600
[tbl]: Regression-test Savannah #62471.
* src/preproc/tbl/tests/horizontal-rules-not-drawn-too-long.sh: Do it.
* src/preproc/tbl/tbl.am (tbl_TESTS): Run test.
Test fails at this commit.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62471>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/