gbranden pushed a commit to branch master
in repository groff.
commit 9a0239adab4b24f51892b9a1f57dafafbbdefdab
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat May 3 00:54:28 2025 -0500
[mdoc]: Suppress warnings from degenerate docs.
* tmac/doc.tmac: Unconditionally initialize `doc-do-capitalize`, to
avoid warnings when formatting degenerate documents lacking an `Sh`
call.
---
ChangeLog | 6 ++++++
tmac/doc.tmac | 3 +++
2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 44d68c3b9..10638799b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-02 G. Branden Robinson <[email protected]>
+
+ * tmac/doc.tmac: Unconditionally initialize `doc-do-capitalize`,
+ to avoid warnings when formatting degenerate documents lacking
+ an `Sh` call.
+
2025-05-02 G. Branden Robinson <[email protected]>
* tmac/doc.tmac: Save and restore AT&T troff compatibility mode,
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 1f1a1900b..9f0973e5c 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -133,6 +133,9 @@
.if !r CS \
. nr CS 0
.
+.\" `Sh` sets this register to \n[CS].
+.nr doc-do-capitalize 0
+.
.\" full capitalization of page identifier
.if !r CT \
. nr CT 0
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit