[kupu-checkins] r36781 - kupu/trunk/kupu/plone

duncan at codespeak.net duncan at codespeak.net
Mon Jan 15 16:39:46 CET 2007


Author: duncan
Date: Mon Jan 15 16:39:45 2007
New Revision: 36781

Modified:
   kupu/trunk/kupu/plone/html2captioned.py
Log:
Forgot to update the regex.

Modified: kupu/trunk/kupu/plone/html2captioned.py
==============================================================================
--- kupu/trunk/kupu/plone/html2captioned.py	(original)
+++ kupu/trunk/kupu/plone/html2captioned.py	Mon Jan 15 16:39:45 2007
@@ -621,7 +621,7 @@
         return NAVIGATION_PAGE
     return pt
 
-EntityPattern = re.compile('&(?:#(\d+)|([a-zA-Z]+));')
+EntityPattern = re.compile('&(?:#(\d+)|(?:#x([\da-fA-F]+))|([a-zA-Z]+));')
 def decodeEntities(s, encoding='utf-8'):
     def unescape(match):
         code = match.group(1)


More information about the kupu-checkins mailing list