gbranden pushed a commit to branch master
in repository groff.
commit d114c0c82d7e3845deb1b2f8ec3b76ab4ec58f91
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Oct 28 05:09:10 2025 -0500
[ms]: Clarify logic.
* tmac/s.tmac (TE): Clarify logic. Predicate early return on
undefinedness of `TW` register, not whether we've issued a warning
diagnostic regarding tbl failure. While these two conditions are
logically coupled (one complementing the other), we avoid performing
post-tbl cleanup actions because tbl didn't run, not because we
diagnosed that fact.
---
ChangeLog | 9 +++++++++
tmac/s.tmac | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2e9c8b6c6..0fad8b0af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-10-28 G. Branden Robinson <[email protected]>
+
+ * tmac/s.tmac (TE): Clarify logic. Predicate early return on
+ undefinedness of `TW` register, not whether we've issued a
+ warning diagnostic regarding tbl failure. While these two
+ conditions are logically coupled (one complementing the other),
+ we avoid performing post-tbl cleanup actions because tbl didn't
+ run, not because we diagnosed that fact.
+
2025-10-28 G. Branden Robinson <[email protected]>
* src/preproc/tbl/table.cpp (table::do_bottom): Annotate
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 645fc703d..61fd28a75 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -2097,7 +2097,7 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
..
.de TE
.tbl*check-for-tbl
-.if \\n[tbl*was-tbl-failure-reported] .return
+.if !r TW .return
.ie '\\n(.z'tbl*heading-diversion' \
. @error-recover .TS H but no .TH before .TE
.el \{\
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit