X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c87ca5ccad142a07c63368e44b698992af17ad5c..f7d05e5e1b0ee776b5a4204804197d9dc02c9b0a:/etc/mhn.defaults.sh diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index 2e43c870..ec0c0852 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -26,11 +26,9 @@ TMP=/tmp/nmh_temp.$$ 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/^$/>/;'" @@ -279,8 +277,6 @@ EOF # 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}; '"\ @@ -288,7 +284,7 @@ if [ ! -z "$PGM" ]; then 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` @@ -301,7 +297,7 @@ $PGM "'-child -dump -force_html ${charset:+--assume_charset "$charset"} %F | '"\ 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