trap "rm -f $TMP" 0 1 2 3 13 15
if [ ! -z `$SEARCHPROG "$SEARCHPATH" par` ]; then
- #### par fails on input lines that are too wide, so used fold(1)
- #### to wrap them first. The widths here correspond to those
- #### for the text browsers below.
- textfmt=' | fold -s -w 64 | par 64'
- replfmt=" | fold -s -w 62 | sed 's/^\(.\)/> \1/; s/^$/>/;' | par 64"
+ #### The widths here correspond to those for the text browsers below.
+ textfmt=' | par 64'
+ replfmt=" | sed 's/^\(.\)/> \1/; s/^$/>/;' | par 64"
elif [ ! -z `$SEARCHPROG "$SEARCHPATH" fmt` ]; then
textfmt=' | fmt'
replfmt=" | fmt | sed 's/^\(.\)/> \1/; s/^$/>/;'"
# but only once I've added a new %-escape that makes more permanent temp files,
# so netscape -remote can be used (without -remote you get a complaint dialog
# that another netscape is already running and certain things can't be done).
-#
-# The widths here correspond to the replfmt width, with par, above.
PGM=`$SEARCHPROG "$SEARCHPATH" w3m`
if [ ! -z "$PGM" ]; then
echo 'mhshow-show-text/html: charset=%{charset}; '"\
echo 'mhfixmsg-format-text/html: charset=%{charset}; '"\
$PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html %F' >> $TMP
echo 'mhbuild-convert-text/html: charset=%{charset}; '"\
-$PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html -cols 62 %F '"\
+$PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html %F '"\
${replfmt}" >> $TMP
else
PGM=`$SEARCHPROG "$SEARCHPATH" lynx`
expand | sed -e 's/^ //' -e 's/ *$//'" >> $TMP
echo 'mhbuild-convert-text/html: charset=%{charset}; '"\
$PGM "'-child -dump -force_html ${charset:+--assume_charset "$charset"} '"\
--width=62 %F${replfmt}" >> $TMP
+%F${replfmt}" >> $TMP
else
PGM=`$SEARCHPROG "$SEARCHPATH" elinks`
if [ ! -z "$PGM" ]; then