diff options
author | schmonz <schmonz> | 2008-07-31 02:47:45 +0000 |
---|---|---|
committer | schmonz <schmonz> | 2008-07-31 02:47:45 +0000 |
commit | 783b9b054024f6ff19207573ab141d689e64c0fb (patch) | |
tree | 6394df48e88aebeb1dd223fc794e43901db29e69 /textproc/py-html2text | |
parent | 2abcb4c4e06c0e48d28bb9633269a3b87badefa8 (diff) | |
download | pkgsrc-783b9b054024f6ff19207573ab141d689e64c0fb.tar.gz |
Update to 2.31:
* fix unicode support (tx John Chapman)
Diffstat (limited to 'textproc/py-html2text')
-rw-r--r-- | textproc/py-html2text/Makefile | 4 | ||||
-rw-r--r-- | textproc/py-html2text/distinfo | 10 | ||||
-rw-r--r-- | textproc/py-html2text/patches/patch-aa | 17 |
3 files changed, 11 insertions, 20 deletions
diff --git a/textproc/py-html2text/Makefile b/textproc/py-html2text/Makefile index 7762119ff51..25bb4f2df50 100644 --- a/textproc/py-html2text/Makefile +++ b/textproc/py-html2text/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:52 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2008/07/31 02:47:45 schmonz Exp $ # -DISTNAME= html2text-2.3 +DISTNAME= html2text-2.31 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= textproc python MASTER_SITES= ${HOMEPAGE} diff --git a/textproc/py-html2text/distinfo b/textproc/py-html2text/distinfo index 1b09474fc22..f770d81a1e1 100644 --- a/textproc/py-html2text/distinfo +++ b/textproc/py-html2text/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.8 2008/06/01 04:52:15 schmonz Exp $ +$NetBSD: distinfo,v 1.9 2008/07/31 02:47:45 schmonz Exp $ -SHA1 (html2text-2.3.py) = 5cd6bb95b0e519a89e212354f82f9e0a6960a3a2 -RMD160 (html2text-2.3.py) = 5a5e05485daed9ea2f4af79358123aefb60a51b9 -Size (html2text-2.3.py) = 12987 bytes -SHA1 (patch-aa) = da6f7f48c276ff115f2d27692fbe41221c1845ce +SHA1 (html2text-2.31.py) = 391c6b5ee832336d110b12a1e212371d07812c64 +RMD160 (html2text-2.31.py) = 535069bd9529b18fda8b6eeca3883a29ab51ca2f +Size (html2text-2.31.py) = 13061 bytes +SHA1 (patch-aa) = b703efa18231222444a1730cb39f72e78c6836eb diff --git a/textproc/py-html2text/patches/patch-aa b/textproc/py-html2text/patches/patch-aa index fd2511ee06a..65a87f55073 100644 --- a/textproc/py-html2text/patches/patch-aa +++ b/textproc/py-html2text/patches/patch-aa @@ -1,17 +1,8 @@ -$NetBSD: patch-aa,v 1.4 2008/06/01 04:52:15 schmonz Exp $ +$NetBSD: patch-aa,v 1.5 2008/07/31 02:47:45 schmonz Exp $ ---- html2text.py.orig 2008-06-01 00:37:59.000000000 -0400 +--- html2text.py.orig 2008-07-30 22:37:59.000000000 -0400 +++ html2text.py -@@ -155,7 +155,7 @@ class _html2text(sgmllib.SGMLParser): - self.lastWasNL = 0 - - def outtextf(self, s): -- if type(s) is type(''): s = codecs.utf_8_decode(s)[0] -+ if type(s) is type(''): s = codecs.utf_8_decode(s, "replace")[0] - self.outtext += s - - def close(self): -@@ -267,6 +267,7 @@ class _html2text(sgmllib.SGMLParser): +@@ -266,6 +266,7 @@ class _html2text(sgmllib.SGMLParser): if attrs.has_key('src'): attrs['href'] = attrs['src'] alt = attrs.get('alt', '') @@ -19,7 +10,7 @@ $NetBSD: patch-aa,v 1.4 2008/06/01 04:52:15 schmonz Exp $ i = self.previousIndex(attrs) if i is not None: attrs = self.a[i] -@@ -287,7 +288,7 @@ class _html2text(sgmllib.SGMLParser): +@@ -286,7 +287,7 @@ class _html2text(sgmllib.SGMLParser): if tag in ["ol", "ul"]: if start: self.list.append({'name':tag, 'num':0}) |