Date: Fri, 15 May 2015 15:56:28 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282980 - head/usr.bin/man Message-ID: <201505151556.t4FFuSrW018765@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505151556.t4FFuSrW018765>