diff options
author | bapt <bapt@FreeBSD.org> | 2015-09-19 16:00:50 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-09-19 16:00:50 +0000 |
commit | a31c9038cc19399b5798856c2220fd00f9f98479 (patch) | |
tree | f2e17d7ec5494efdabe23007e32bf9846ef287cf /usr.bin/man | |
parent | b5750fe77bb11a437369167980a33cfcf7117c04 (diff) | |
download | FreeBSD-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-x | usr.bin/man/man.sh | 6 |
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 |