gbranden pushed a commit to branch master
in repository groff.
commit c9954c1e09b1a98bbe1d17a2bff078fe03d9f385
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Oct 28 05:04:03 2025 -0500
[tbl]: Annotate *roff output more.
* src/preproc/tbl/table.cpp (table::do_bottom): Annotate generated *roff
requests that avoid overprinting the bottom of a boxed table on nroff
devices, to help anyone having to debug tbl's output maintain their
sanity.
---
ChangeLog | 7 +++++++
src/preproc/tbl/table.cpp | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2fd89a15a..2e9c8b6c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-10-28 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/table.cpp (table::do_bottom): Annotate
+ generated *roff requests that avoid overprinting the bottom of a
+ boxed table on nroff devices, to help anyone having to debug
+ tbl's output maintain their sanity.
+
2025-10-28 G. Branden Robinson <[email protected]>
[tbl]: Revise diagnostics.
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index c98d8fd95..5ada602d3 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -3186,11 +3186,11 @@ void table::do_bottom()
// a half-row if we ever support [emulators of] devices like the
// Teletype Model 37 with half-line motions).
if (flags & (BOX | DOUBLEBOX | ALLBOX))
- prints(".if n .sp\n");
+ prints(".if n .sp \\\" avoid overprinting box bottom\n");
// Space again for the doublebox option, until we can draw that more
// attractively; see Savannah #43637.
if (flags & DOUBLEBOX)
- prints(".if n .sp\n");
+ prints(".if n .sp \\\" avoid overprinting doublebox bottom\n");
prints("." RESET_MACRO_NAME "\n"
".nn \\n[" SAVED_NUMBERING_SUPPRESSION_COUNT "]\n"
".ie \\n[" SAVED_NUMBERING_ENABLED "] "
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit