Restore man -t for manpages rendered by mandoc

Reported by:	swills
This commit is contained in:
bapt 2015-09-19 16:00:50 +00:00
parent b5750fe77b
commit a31c9038cc

View File

@ -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