From 449a792dd50054d9c04bf7097a1851f3fdaf32be Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 19 Sep 2015 16:00:50 +0000 Subject: [PATCH] Restore man -t for manpages rendered by mandoc Reported by: swills --- usr.bin/man/man.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index e125e5be3f8..094ea11c10a 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