gbranden pushed a commit to branch master
in repository groff.

commit 8a005921720d8c9583d63f338a969c67413cc00b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jul 14 09:57:59 2026 -0500

    [sboxes]: Indirect color through string.
    
    ...preventing warning in category `color` when formatting for devices
    that don't recognize this color.  Use `default` for any non-PDF device,
    as the operation won't work as desired on any other device anyway.
---
 contrib/sboxes/msboxes.ms.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/sboxes/msboxes.ms.in b/contrib/sboxes/msboxes.ms.in
index a8a6153c3..4b53af305 100644
--- a/contrib/sboxes/msboxes.ms.in
+++ b/contrib/sboxes/msboxes.ms.in
@@ -51,6 +51,8 @@
 .  nop \&\\$2
 ..
 .ds FAM H
+.ie '\*[.T]'pdf' .ds pgbkgd floralwhite
+.el              .ds pgbkgd default
 .TL
 Using PDF boxes with
 .BI groff
@@ -77,7 +79,7 @@ or a convenience macro
 supporting the same parameters.
 .QS
 .BOXSTART SHADED cornsilk OUTLINED brown INDENT 2n WEIGHT 1p
-\M[floralwhite]\c
+\M[\*[pgbkgd]]\c
 .pdfbackground pagefill
 \M[]\c
 .B

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to