svn commit: r282980 - head/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Fri May 15 15:56:29 UTC 2015
Author: bapt
Date: Fri May 15 15:56:28 2015
New Revision: 282980
URL: https://svnweb.freebsd.org/changeset/base/282980
Log:
Allow MANWIDTH to work with mandoc(1)
Reported by: bdrewery
Modified:
head/usr.bin/man/man.sh
Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh Fri May 15 15:49:24 2015 (r282979)
+++ head/usr.bin/man/man.sh Fri May 15 15:56:28 2015 (r282980)
@@ -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
More information about the svn-src-all
mailing list