From 8dfa1963e55ead8a842115a970fc3f99a1803cc6 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 9 Aug 2010 11:02:14 +0200 Subject: [PATCH] *** empty log message *** --- html2text.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 html2text.sh diff --git a/html2text.sh b/html2text.sh new file mode 100755 index 0000000..8c29b10 --- /dev/null +++ b/html2text.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +################################################################## +# START_IP_HEADER # +# # +# Written by Francois Fleuret # +# Contact for comments & bug reports # +# # +# END_IP_HEADER # +################################################################## + +set -e + +echo "(From html)" + +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/^ *//" -- 2.39.5