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=6a45dbe664eebcb3050d0c3dfe9856f7c5815aca;hpb=ea923a43955b6b07ebe087eef413dc27744d8c81 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/^ *//" +