gbranden pushed a commit to branch master
in repository groff.
commit 4c7f7fccfd3c08d0427d14fe219279cc81574d46
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 10 08:18:54 2026 -0500
[mdoc]: Work better with "-T X{100,75}-12" option.
* tmac/doc.tmac: Recognize that using the "X100-12" or "X75-12" output
devices necessarily implies an `S` register default of "12", not "10",
just as groff man(7) has done for a long time. Problem dates back to
introduction of mdoc(7) support for `S` register in commit b57a732836,
2001-03-24.
Fixes <https://savannah.gnu.org/bugs/?68334>.
---
ChangeLog | 10 ++++++++++
tmac/mdoc/doc-ditroff | 8 +++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index dd1fa8411..1937d942f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-05-10 G. Branden Robinson <[email protected]>
+
+ * tmac/doc.tmac: Recognize that using the "X100-12" or "X75-12"
+ output devices necessarily implies an `S` register default of
+ "12", not "10", just as groff man(7) has done for a long time.
+ Problem dates back to introduction of mdoc(7) support for `S`
+ register in commit b57a732836, 2001-03-24.
+
+ Fixes <https://savannah.gnu.org/bugs/?68334>.
+
2026-05-10 G. Branden Robinson <[email protected]>
* tmac/an.tmac: Define empty "bookmark handlers" for X100,
diff --git a/tmac/mdoc/doc-ditroff b/tmac/mdoc/doc-ditroff
index 6511345da..9c991071e 100644
--- a/tmac/mdoc/doc-ditroff
+++ b/tmac/mdoc/doc-ditroff
@@ -35,7 +35,13 @@
.
.
.\" Use -rS={11,12} to change the font size from 10pt to 11pt or 12pt.
-.if !r S .nr S 10
+.if !r S \{\
+. nr S 10
+. if '\*[.T]'X75-12' \
+. nr S 12
+. if '\*[.T]'X100-12' \
+. nr S 12
+.\}
.
.ie (\n[S] == 11) \{\
. ps 10.95z
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit