use col -x to prevent col from turning whitespace into tabs. doing so assumes that troff knows specifics about $font, and it typically doesn't. the results are particularly poor for "man 2 draw". additionally, simplify the postprocessing pipeline. Reference: /n/sources/patch/maybe/man-spc Date: Thu Mar 18 18:18:03 CET 2010 Signed-off-by: quanstro@quanstro.net --- /rc/bin/man Thu Mar 18 18:11:06 2010 +++ /rc/bin/man Thu Mar 18 18:11:05 2010 @@ -9,6 +9,15 @@ S=/sys/man d=0 +fn pipeline{ + if(~ $#* 0) + troff $Nflag $Lflag -$MAN | $postproc + if not{ + p = $1; shift + $p | pipeline $* + } +} + fn roff { preproc=() postproc=cat @@ -25,27 +34,13 @@ Lflag='-rL1000i' # setting L changes page length to infinity (sed script removes empty lines) if (grep -s '^\.(2C|sp *[0-9]*\.)' $2) - postproc=col + postproc=(col -x) } if(~ $x *eqn*) preproc=($preproc eqn) if(~ $x *tbl*) preproc=($preproc tbl) - {echo -n $FONTS; cat $2