URL:
  <https://savannah.gnu.org/bugs/?68706>

                 Summary: [mdoc] `Fn` macro should suppress automatic
hyphenation
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sat 19 Sep 2026 07:26:38 AM UTC
                Category: Macro package mdoc
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 19 Sep 2026 07:26:38 AM UTC By: G. Branden Robinson <gbranden>
Exhibit:


$ cat ATTIC/hyphenation.mdoc 
.Dd 2026-09-19
.Dt foo 1
.Os "groff test suite"
.Sh Name
.Nm foo
.Nd frobnicate a bar
.Sh Description
.hw super-user
.Nm
performs the inverse operation of
.Xr bar 1 , which the friendly administrator can run .
.Pp
.Nm
performs the inverse operation of
.Xr bar 1 ,
which the friendly administrator can run.
Internally,
it invokes the
.Ox No function
.Fn zotzotzotzotzot "int luser-id" .
Goodbye,
man page reader!
$ nroff -mdoc ATTIC/hyphenation.mdoc
foo(1)                       General Commands Manual
foo(1)

Name
     foo —— frobnicate a bar

Description
     foo   performs   the  inverse  operation  of  bar(1),  which  the
friendly
     administrator can run.

     foo performs the inverse operation of bar(1), which the  friendly
adminis‐
     trator  can run.  Internally, it invokes the OpenBSD function
zotzotzotzot‐
     zot(int luser‐id).  Goodbye, man page reader!

groff test suite                   2026‐09‐19
foo(1)


We see here that while the `Xr` macro suppressed automatic hyphenation of its
"administrator" argument, `Fn` did not do the same for "zotzotzotzotzot".

I'm having trouble thinking of a circumstance where anyone would want a
function name literal hyphenated.

Discovered while composing
[https://lists.gnu.org/archive/html/groff/2026-09/msg00054.html an email to
Guillem Jover].

See how hard this is to fix; if easy, maybe we can get it into _groff_ 1.25.0.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68706>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to