X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=html2text.sh;fp=html2text.sh;h=0000000000000000000000000000000000000000;hb=6473993b691c6280c4ad1d1d9a3b697eb0e05eb2;hp=fe10cc043e71b8ecaf2c07dc55aff5f1a983abce;hpb=5d1aa1fd3b6c8a003dd3789791a349f34a0b0c14;p=scripts.git diff --git a/html2text.sh b/html2text.sh deleted file mode 100755 index fe10cc0..0000000 --- a/html2text.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -######################################################################### -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the version 3 of the GNU General Public License # -# as published by the Free Software Foundation. # -# # -# This program is distributed in the hope that it will be useful, but # -# WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # -# General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -# Written by and Copyright (C) Francois Fleuret # -# Contact for comments & bug reports # -######################################################################### - -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 }' -