Hi Grisha,

At 2025-10-04T18:49:38-0400, Grisha Levit wrote:
> On Sat, Oct 4, 2025, 09:59 G. Branden Robinson <[email protected]>
> wrote:
> > -bug reports to \[email protected]\fP or post them to the Usenet
> > +bug reports to \fIbug\[email protected]\fP or post them to the
> > +.SM USENET
> 
> Is there some trick that Bash needs to adopt to get groff to use
> HYPHEN-MINUS for \- when setting HTML or PDF?

Yes.  This was a bug in groff; it's been fixed in our Git repository's
master branch, and the fix is expected to ship in groff 1.24.0.

https://cgit.git.savannah.gnu.org/cgit/groff.git/commit/?id=1de7cff46dec169d9611f054ef0666bc2cfcef93

The fix can be straightforwardly patched into a system's "man.local"
file.  On Debian-based system, that's a conffile in /etc/groff.

> Your following .MT macro patch makes this particular text render
> correctly but this reminded me to ask about the general case, as
> e.g. `.B \-\-norc' is currently getting rendered in bash.html as
> `<b>&minus;&minus;norc</b>'

I noticed that Chet has recently switched from man2html to groff to
generate the distributed HTML versions of the man pages...

doc/bash.html
lib/readline/doc/history.html
lib/readline/doc/readline.html

...which motivated me to see what kind of job groff was doing.  That
prompted the bash patches I sent today, and (through a circuitous route
involving features few man page authors ever mess with) a groff bug fix.

https://savannah.gnu.org/bugs/?67577

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to