X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=html2text.sh;h=dd9dd0af7c22f82ff258fc4901ff93bf050f49d4;hp=8c29b109f2b668d90c61969521a096ffc490b57f;hb=e34107eafa0bdd9c841cd7f84952937bc75c457b;hpb=8dfa1963e55ead8a842115a970fc3f99a1803cc6 diff --git a/html2text.sh b/html2text.sh index 8c29b10..dd9dd0a 100755 --- a/html2text.sh +++ b/html2text.sh @@ -12,9 +12,9 @@ set -e echo "(From html)" +echo elinks -no-numbering -no-references -dump -dump-width 80 -dump-charset utf-8 | \ sed -e "s/\[IMG\]//g" -e "s/^[ \t]*$//" -e "s/^ //" | \ awk '/^$/{ if (! blank++) print; next } { blank=0; print }' - # | \ - # sed -e "s/^ *//" +