HomeFreeBSD

mandoc: workaround lack of macro parsing in list -width

Description

mandoc: workaround lack of macro parsing in list -width

GNU tools parse macros in the -width argument of lists. mandoc does not,
so it calculates an excessive width. This often squeezes the text into
a very narrow column, especially in nested lists.

Implement the easy workaround suggested in the TODO list. When there is
only one macro, at the beginning of the -width argument, this fixes the
formatting as well as a complete solution.

Reviewed by: bapt
Relnotes: yes
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D35245

Details

Provenance
vangyzenAuthored on May 17 2022, 5:46 PM
Reviewer
bapt
Differential Revision
D35245: mandoc: workaround lack of macro parsing in list -width
Parents
rG89e58b955cf5: rc: Fix quoting in the zpoolreguid script
Branches
Unknown
Tags
Unknown