gbranden pushed a commit to branch master
in repository groff.
commit 72edc04782878bc5bc05d3873b1147c64b3c2318
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Sep 13 05:51:36 2026 -0500
[tbl]: Cancel right-alignment before table region.
* src/preproc/tbl/table.cpp (table::init_output): Emit `rj 0` request to
cancel any pending right alignment, just as we do with centering.
Placing an `rj` request with no argument, or a nonzero argument,
before a table region seems to do no damage, but we should be
normalizing alignment prior to laying out a table anyway, as `ce 0`
does (in part).
---
ChangeLog | 9 +++++++++
src/preproc/tbl/table.cpp | 1 +
2 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index c2f5dd86a..9d0249b1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-09-13 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/table.cpp (table::init_output): Emit `rj 0`
+ request to cancel any pending right alignment, just as we do
+ with centering. Placing an `rj` request with no argument, or a
+ nonzero argument, before a table region seems to do no damage,
+ but we should be normalizing alignment prior to laying out a
+ table anyway, as `ce 0` does (in part).
+
2026-09-17 G. Branden Robinson <[email protected]>
* src/libs/libbib/index.cpp
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index 392b41ad3..d4b13b750 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -2043,6 +2043,7 @@ void table::init_output()
"..\n");
}
prints(".ec\n"
+ ".rj 0\n"
".ce 0\n");
prints(".nr " SAVED_NUMBERING_LINENO " \\n[ln]\n"
".nr ln 0\n"
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit