summaryrefslogtreecommitdiff
path: root/textproc/py-html2text/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-html2text/patches/patch-aa')
-rw-r--r--textproc/py-html2text/patches/patch-aa12
1 files changed, 7 insertions, 5 deletions
diff --git a/textproc/py-html2text/patches/patch-aa b/textproc/py-html2text/patches/patch-aa
index 367e5258c33..28ee1208bd6 100644
--- a/textproc/py-html2text/patches/patch-aa
+++ b/textproc/py-html2text/patches/patch-aa
@@ -1,16 +1,18 @@
-$NetBSD: patch-aa,v 1.6 2008/10/19 18:39:56 schmonz Exp $
+$NetBSD: patch-aa,v 1.7 2011/06/09 06:21:38 schmonz Exp $
---- html2text.py.orig 2008-10-19 14:36:07.000000000 -0400
+Small cleanup patch from Debian.
+
+--- html2text.py.orig 2011-03-08 23:35:25.000000000 +0000
+++ html2text.py
-@@ -282,6 +282,7 @@ class _html2text(sgmllib.SGMLParser):
- if attrs.has_key('src'):
+@@ -305,6 +305,7 @@ class _html2text(HTMLParser.HTMLParser):
+ if has_key(attrs, 'src'):
attrs['href'] = attrs['src']
alt = attrs.get('alt', '')
+ alt = re.sub('\n', ' ', alt)
i = self.previousIndex(attrs)
if i is not None:
attrs = self.a[i]
-@@ -302,7 +303,7 @@ class _html2text(sgmllib.SGMLParser):
+@@ -325,7 +326,7 @@ class _html2text(HTMLParser.HTMLParser):
if tag in ["ol", "ul"]:
if start:
self.list.append({'name':tag, 'num':0})