summaryrefslogtreecommitdiffstats
path: root/usr.bin/man
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-09-19 16:00:50 +0000
committerbapt <bapt@FreeBSD.org>2015-09-19 16:00:50 +0000
commita31c9038cc19399b5798856c2220fd00f9f98479 (patch)
treef2e17d7ec5494efdabe23007e32bf9846ef287cf /usr.bin/man
parentb5750fe77bb11a437369167980a33cfcf7117c04 (diff)
downloadFreeBSD-src-a31c9038cc19399b5798856c2220fd00f9f98479.zip
FreeBSD-src-a31c9038cc19399b5798856c2220fd00f9f98479.tar.gz
Restore man -t for manpages rendered by mandoc
Reported by: swills
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index e125e5b..094ea11 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -315,7 +315,11 @@ man_display_page() {
mandoc_args="-O width=${use_width}"
fi
testline="mandoc -Tlint -Wunsupp 2>/dev/null"
- pipeline="mandoc $mandoc_args | $MANPAGER"
+ if [ -n "$tflag" ]; then
+ pipeline="mandoc -Tps $mandoc_args"
+ else
+ pipeline="mandoc $mandoc_args | $MANPAGER"
+ fi
if ! eval "$cattool $manpage | $testline" ;then
if which -s groff; then
OpenPOWER on IntegriCloud