CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/10/02 10:43:17

Modified files:
        usr.bin/mandoc : msec.c 

Log message:
When converting a section identifier (for example, "1" or "1m") to
a volume title (for example, "General Commands Manual" or "Maintenance
Commands") and no exact match is found for the identifier, retry
using only the first character of the identifier before giving up.

For example, when using OpenBSD to format the Oracle Solaris ipmitool(1m)
manual, which contains the line '.TH ipmitool 1m "29 June 2012"',
use the section 1 volume title "General Commands Manual" rather
than finding no title at all.  In general, this improves formatting
of the page header line of manual pages using session suffixes that
are not declared in msec.in on the formatting system.  That's useful
everywhere for formatting foreign manual pages, but also for
formatting native manuals on systems using many suffixes.

I had this idea for a small improvement while looking at how FreeBSD
customizes the companion file msec.in in their freebsd-src/contrib/mandoc
directory.

Reply via email to