[Python-modules-commits] r22294 - in packages/pyth/trunk/debian (3 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jun 25 03:55:55 UTC 2012


    Date: Monday, June 25, 2012 @ 03:55:53
  Author: eriol-guest
Revision: 22294

Fixed escaping HTML entities within strings behavior change in
python-beautifulsoup 3.2.1

Added:
  packages/pyth/trunk/debian/patches/02_fix-escaping-html-entities-behavior-change.path
Modified:
  packages/pyth/trunk/debian/changelog
  packages/pyth/trunk/debian/patches/series

Modified: packages/pyth/trunk/debian/changelog
===================================================================
--- packages/pyth/trunk/debian/changelog	2012-06-25 03:46:16 UTC (rev 22293)
+++ packages/pyth/trunk/debian/changelog	2012-06-25 03:55:53 UTC (rev 22294)
@@ -4,6 +4,9 @@
     - Fixed Vcs-Svn URL
   * debian/patches/01_fix-refactored-PDFWriter-write.patch
     - Made DEP3 compliant
+  * debian/02_fix-escaping-html-entities-behavior-change.path
+    - Fixed escaping HTML entities within strings behavior change in
+      python-beautifulsoup 3.2.1. (Closes: #678754)
 
  -- Daniele Tricoli <eriol at mornie.org>  Mon, 25 Jun 2012 05:25:43 +0200
 

Added: packages/pyth/trunk/debian/patches/02_fix-escaping-html-entities-behavior-change.path
===================================================================
--- packages/pyth/trunk/debian/patches/02_fix-escaping-html-entities-behavior-change.path	                        (rev 0)
+++ packages/pyth/trunk/debian/patches/02_fix-escaping-html-entities-behavior-change.path	2012-06-25 03:55:53 UTC (rev 22294)
@@ -0,0 +1,15 @@
+Description: Fixed escaping HTML entities within strings behavior change in
+ python-beautifulsoup 3.2.1.
+Author: Daniele Tricoli <eriol at mornie.org>
+Last-Update: 2012-06-25
+--- a/pyth/plugins/xhtml/reader.py
++++ b/pyth/plugins/xhtml/reader.py
+@@ -55,7 +55,7 @@
+                 text = unicode(node)
+                 lines = [x.strip() for x in text.splitlines()]
+                 text = ' '.join(lines)
+-                node.replaceWith(text)
++                node.replaceWith(BeautifulSoup.BeautifulSoup(text))
+         soup = BeautifulSoup.BeautifulSoup(unicode(soup))
+         # replace all <br/> tag by newline character
+         for node in soup.findAll('br'):

Modified: packages/pyth/trunk/debian/patches/series
===================================================================
--- packages/pyth/trunk/debian/patches/series	2012-06-25 03:46:16 UTC (rev 22293)
+++ packages/pyth/trunk/debian/patches/series	2012-06-25 03:55:53 UTC (rev 22294)
@@ -1 +1,2 @@
 01_fix-refactored-PDFWriter-write.patch
+02_fix-escaping-html-entities-behavior-change.path




More information about the Python-modules-commits mailing list