pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-html2text Update to 2.31:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f78ea0fbf7e
branches:  trunk
changeset: 545327:9f78ea0fbf7e
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jul 31 02:47:45 2008 +0000

description:
Update to 2.31:

* fix unicode support (tx John Chapman)

diffstat:

 textproc/py-html2text/Makefile         |   4 ++--
 textproc/py-html2text/distinfo         |  10 +++++-----
 textproc/py-html2text/patches/patch-aa |  17 ++++-------------
 3 files changed, 11 insertions(+), 20 deletions(-)

diffs (61 lines):

diff -r f6356f37a26f -r 9f78ea0fbf7e textproc/py-html2text/Makefile
--- a/textproc/py-html2text/Makefile    Thu Jul 31 01:05:02 2008 +0000
+++ b/textproc/py-html2text/Makefile    Thu Jul 31 02:47:45 2008 +0000
@@ -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 -r f6356f37a26f -r 9f78ea0fbf7e textproc/py-html2text/distinfo
--- a/textproc/py-html2text/distinfo    Thu Jul 31 01:05:02 2008 +0000
+++ b/textproc/py-html2text/distinfo    Thu Jul 31 02:47:45 2008 +0000
@@ -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 -r f6356f37a26f -r 9f78ea0fbf7e textproc/py-html2text/patches/patch-aa
--- a/textproc/py-html2text/patches/patch-aa    Thu Jul 31 01:05:02 2008 +0000
+++ b/textproc/py-html2text/patches/patch-aa    Thu Jul 31 02:47:45 2008 +0000
@@ -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 @@
                  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})



Home | Main Index | Thread Index | Old Index