gbranden pushed a commit to branch master
in repository groff.
commit 99e085fc37f741d4c41423dcf8e2516e4104a7d5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 14 09:47:20 2026 -0500
[sboxes]: Be more quiet if device is not "pdf".
* contrib/sboxes/sboxes.tmac (BOXSTART, BOXSTOP): Supply empty
definitions of these interface macros if the output device is not
"pdf". Silences warnings in `mac` category (and, depending on user
input and output device selection, some in `color` as well).
(fn@print-sep): Guard appendments to this groff ms(7) internal macro
with a test that the output device is "pdf".
---
contrib/sboxes/ChangeLog | 9 +++++++++
contrib/sboxes/sboxes.tmac | 15 ++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/contrib/sboxes/ChangeLog b/contrib/sboxes/ChangeLog
index 81e5ddd92..6994d916e 100644
--- a/contrib/sboxes/ChangeLog
+++ b/contrib/sboxes/ChangeLog
@@ -1,3 +1,12 @@
+2026-07-14 G. Branden Robinson <[email protected]>
+
+ * sboxes.tmac (BOXSTART, BOXSTOP): Supply empty definitions of
+ these interface macros if the output device is not "pdf".
+ Silences warnings in `mac` category (and, depending on user
+ input and output device selection, some in `color` as well).
+ (fn@print-sep): Guard appendments to this groff ms(7) internal
+ macro with a test that the output device is "pdf".
+
2026-03-14 G. Branden Robinson <[email protected]>
* notquine.sed: Suppress end-of-sentence detection in GPL notice
diff --git a/contrib/sboxes/sboxes.tmac b/contrib/sboxes/sboxes.tmac
index 815e8455d..db2f384a6 100644
--- a/contrib/sboxes/sboxes.tmac
+++ b/contrib/sboxes/sboxes.tmac
@@ -68,15 +68,19 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
.
.\" Link into ms macros to trap footnote growth
.am fn@print-sep
-. nr bx*pb \\n[nl]u-2p
-. nop \!x X pdf: background footnote \\n[bx*pb]z
-. rr bx*pb
+. if '\*[.T]'pdf' \{\
+. nr bx*pb \\n[nl]u-2p
+. nop \!x X pdf: background footnote \\n[bx*pb]z
+. rr bx*pb
+. \}
..
.\" Has PD been actioned?
.am par*start
. nr bx*PD \\n[PD]
..
.
+.ie !'\*[.T]'pdf' .ds BOXSTART \" empty
+.el \{\
.de BOXSTART
. fl
. nr bx*stack \\n[bx*stack]+1u
@@ -138,6 +142,10 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
. sp -(\\n[bx*gap]u)
. nr bx*PD 0
..
+.\}
+.
+.ie !'\*[.T]'pdf' .ds BOXSTOP \" empty
+.el \{\
.de BOXSTOP
. vpt 0
. sp \\*[bx*ind\\n[bx*stack]]u-\\n[.psr]u
@@ -146,6 +154,7 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
. nr bx*stack \\n[bx*stack]-1u
. fl
..
+.\}
.\" Local Variables:
.\" mode: nroff
.\" fill-column: 72
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit