chiark / gitweb /
force HTML-ized man pages to use ASCII
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 12 Apr 2008 14:11:07 +0000 (15:11 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 12 Apr 2008 14:11:07 +0000 (15:11 +0100)
scripts/htmlman

index 5bbc07bc194bf17986c6f508b87d19f3acdae6f0..fa966dda477eddc870a0005e26a6261101ddc15b 100755 (executable)
@@ -53,7 +53,7 @@ if $stdhead; then
 fi
 printf "   <pre class=manpage>"
 # this is kind of painful using only BREs
-nroff -man "$1" | ${GNUSED} \
+nroff -Tascii -man "$1" | ${GNUSED} \
                       '1d;$d;
                        1,/./{/^$/d};
                        s/&/\&amp;/g;