gbranden pushed a commit to branch master
in repository groff.
commit 954230c53b7bb79d2962510c3d00bb55e059e243
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 17 18:22:57 2026 -0500
[man,mdoc]: Break line before any table region.
* tmac/an.tmac (TS): Unconditionally break the line.
* tmac/doc.tmac (TS): New macro unconditionally breaks the line.
Handle erroneous input better: even if a tbl(1) table region is
malformed and renders nothing, the user (likely) still expects a line
break where the table _would_ have been.
See <https://savannah.gnu.org/bugs/?68696>. Thanks to Ingo Schwarze for
the discussion.
---
ChangeLog | 12 ++++++++++++
tmac/an.tmac | 1 +
tmac/doc.tmac | 7 +++++++
3 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1e487164a..ea553c8ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2026-09-17 G. Branden Robinson <[email protected]>
+
+ * tmac/an.tmac (TS): Unconditionally break the line.
+ * tmac/doc.tmac (TS): New macro unconditionally breaks the line.
+
+ Handle erroneous input better: even if a tbl(1) table region is
+ malformed and renders nothing, the user (likely) still expects a
+ line break where the table _would_ have been.
+
+ See <https://savannah.gnu.org/bugs/?68696>. Thanks to Ingo
+ Schwarze for the discussion.
+
2026-09-13 G. Branden Robinson <[email protected]>
* src/preproc/tbl/table.cpp (table::init_output): Emit
diff --git a/tmac/an.tmac b/tmac/an.tmac
index b0e90f204..61e2c7a11 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1548,6 +1548,7 @@ contains unsupported escape sequence
.
.\" Start table.
.de1 TS
+. br \" Always break the line, even if the table region is invalid.
. \" If continuous rendering, tell tbl not to use keeps.
. ie \\n[cR] .nr 3usekeeps 0
. el .nr 3usekeeps 1
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 881ee2381..fc742d3ce 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -7143,6 +7143,13 @@ arguments
.ec
.
.
+.\" NS Define preprocessor macros as necessary.
+.
+.de TS
+. br \" Always break the line, even if the table region is invalid.
+..
+.
+.
.\" NS doc-defunct-macro macro
.\" NS this is the skeleton for defunct macros
.\" NS
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit