[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63449] [tbl] causes grotty to complain "character above first line
From: |
G. Branden Robinson |
Subject: |
[bug #63449] [tbl] causes grotty to complain "character above first line discarded" |
Date: |
Thu, 1 Dec 2022 03:23:27 -0500 (EST) |
Update of bug #63449 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
commit 095bb703e648938cea5a76e36eec54c5711fe491
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Wed Nov 30 23:09:23 2022 -0600
[tbl]: Regression-test Savannah #63449.
* src/preproc/tbl/tests/do-not-overdraw-page-top-in-nroff-mode.sh: Do
it.
* src/preproc/tbl/tbl.am (tbl_TESTS): Run test.
Test fails at this commit.
commit 0e93ab410294677e3e4ea105b04f2a18b5c7f9dc
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Thu Dec 1 00:53:11 2022 -0600
[tbl]: Fix Savannah #63449.
* src/preproc/tbl/table.h (class table): Add new enumeration constants
for use with `flags` member variable: `HAS_TOP_VLINE` and
`HAS_TOP_HLINE`, which track properties of the table. Unlike others,
these have no correspondence to table region options.
* src/preproc/tbl/main.cpp (process_format): Add new local Boolean to
track whether we're interpreting a format for the first row. Use this
to "or" on the `HAS_TOP_VLINE` or `HAS_TOP_HLINE` flags if "|" or [_-]
are encountered in the first row's format, as appropriate.
(process_data): "Or" on `HAS_TOP_HLINE` if a single or double
horizontal line is used as the first row's data.
* src/preproc/tbl/table.cpp (do_top): On nroff mode devices, add one 1v
of space above the table if we're going to be drawing an unintersected
vertical rule above the table's top.
Fixes <https://savannah.gnu.org/bugs/?63449>.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63449>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/