X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=html2text.sh;h=dd9dd0af7c22f82ff258fc4901ff93bf050f49d4;hb=e2f53975cc8e22c351a9b8095f88320cc1c40db2;hp=8c29b109f2b668d90c61969521a096ffc490b57f;hpb=8dfa1963e55ead8a842115a970fc3f99a1803cc6;p=scripts.git 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/^ *//" +