aboutsummaryrefslogtreecommitdiff
path: root/network/r2e/remove-newlines.patch
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2016-09-28 09:05:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-01 07:17:17 +0700
commit109b2f018af8e4c87e4c793c7c03dfab919fc450 (patch)
treedcd87de986c44dad4e8fc785a32aceb421bf6296 /network/r2e/remove-newlines.patch
parent3d3965883a3f7087769a8c563f37e3569b0e071f (diff)
network/r2e: Updated for version 2.71 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/r2e/remove-newlines.patch')
-rw-r--r--network/r2e/remove-newlines.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/network/r2e/remove-newlines.patch b/network/r2e/remove-newlines.patch
new file mode 100644
index 000000000000..7ae77516332a
--- /dev/null
+++ b/network/r2e/remove-newlines.patch
@@ -0,0 +1,20 @@
+From: David Watson <dwatson@debian.org>
+Date: Mon, 18 Apr 2011 10:41:04 +0200
+Subject: remove-newlines
+
+---
+ html2text.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/html2text.py b/html2text.py
+index 0ed4cec..1cd5194 100755
+--- a/html2text.py
++++ b/html2text.py
+@@ -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]