gbranden pushed a commit to branch master
in repository groff.

commit eeb2fa7eb10b68c2f3227c9f224f0f6deff32196
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Sep 19 13:57:37 2026 -0500

    groff_mdoc(7): Drop unnecessary use of `\%`.
    
    mdoc(7)'s bespoke internal macro processor seems to make the use of `\%`
    unnecessary (as I think it tries to do for `\c` as well).
    
    The `Pa` macro "knows" (or should know) that its first argument is
    literal.
    
    Illustration:
    $ cat ATTIC/Pa-hyphenation.mdoc
    .Dd 2026-09-19
    .Dt foo 1
    .Os "groff test suite"
    .Sh Name
    .Nm foo
    .Nd frobnicate a bar
    .Sh Description
    This program reads
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    .Pa andoc\:.tmac ,
    and
    .Pa andoc\:.tmac .
    $ nroff -rLL=72n -mdoc ATTIC/Pa-hyphenation.mdoc
    foo(1)                   General Commands Manual                  foo(1)
    
    Name
         foo —— frobnicate a bar
    
    Description
         This  program reads andoc.tmac, andoc.tmac, andoc.tmac, andoc.tmac,
         andoc.tmac, andoc.tmac, andoc.tmac, andoc.tmac,  andoc.tmac,  andoc
         .tmac, and andoc.tmac.
    
    groff test suite               2026‐09‐19                         foo(1)
---
 tmac/groff_mdoc.7.man | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tmac/groff_mdoc.7.man b/tmac/groff_mdoc.7.man
index e99778cc9..048fa9645 100644
--- a/tmac/groff_mdoc.7.man
+++ b/tmac/groff_mdoc.7.man
@@ -5303,7 +5303,7 @@ uses.
 Multiple man pages,
 in either format,
 can be handled;
-.Pa \%andoc\:.tmac
+.Pa andoc\:.tmac
 reloads each macro package as necessary.
 .
 .

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

Reply via email to