Allow MANWIDTH to work with mandoc(1)

Reported by:	bdrewery
This commit is contained in:
Baptiste Daroussin 2015-05-15 15:56:28 +00:00
parent dd4fcbc594
commit d433cf9a8a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282980

View File

@ -311,8 +311,11 @@ man_display_page() {
return
fi
if [ -n "$use_width" ]; then
mandoc_args="-O width=${use_width}"
fi
testline="mandoc -Tlint -Wunsupp 2>/dev/null"
pipeline="mandoc | $MANPAGER"
pipeline="mandoc $mandoc_args | $MANPAGER"
if ! eval "$cattool $manpage | $testline" ;then
if which -s groff; then