From e4f683f2190b9b6d954e99d17393ce3fa1b44150 Mon Sep 17 00:00:00 2001 From: dockes Date: Mon, 22 Jun 2009 08:58:50 +0000 Subject: [PATCH] use groff html output! --- src/filters/rclman | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/filters/rclman b/src/filters/rclman index 440e6d21..91608669 100755 --- a/src/filters/rclman +++ b/src/filters/rclman @@ -89,27 +89,10 @@ umask 77 # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE -checkcmds groff sed awk iconv +checkcmds groff -# The strange 'BEGIN' setup is to prevent 'file' from thinking this file -# is an awk program -groff -man -Tutf8 < "$infile" | sed -e 's/.//g' -e 's/.//g' |\ -awk 'BEGIN'\ -' { - print "" - print "" - print "\n\n

" -} -{ - gsub(/&/, "\\&", $0) - gsub(//, "\\>", $0) - - print $0 "
" -} -END { - print "

" -}' | iconv -f UTF-8 -t UTF-8 -c -s +# Note: the qt preview really likes to find an tag at the top +echo '' && groff -man -Thtml < "$infile" # exit normally exit 0