Restore man -t for manpages rendered by mandoc

Reported by:	swills
This commit is contained in:
Baptiste Daroussin 2015-09-19 16:00:50 +00:00
parent 6861045bda
commit 449a792dd5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287987

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