Revision: 8314
Author:   xqt
Date:     2010-06-23 16:15:38 +0000 (Wed, 23 Jun 2010)

Log Message:
-----------
ignore html entity & #39; due to bugzilla bug 24093

Modified Paths:
--------------
    trunk/pywikipedia/cosmetic_changes.py

Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py       2010-06-23 10:09:51 UTC (rev 
8313)
+++ trunk/pywikipedia/cosmetic_changes.py       2010-06-23 16:15:38 UTC (rev 
8314)
@@ -539,6 +539,7 @@
     def resolveHtmlEntities(self, text):
         ignore = [
              38,     # Ampersand (&)
+             39,     # Bugzilla 24093
              60,     # Less than (<)
              62,     # Great than (>)
              91,     # Opening bracket - sometimes used intentionally inside 
links
@@ -547,8 +548,8 @@
             160,     # Non-breaking space ( ) - not supported by Firefox 
textareas
         ]
         # ignore ' see 
http://eo.wikipedia.org/w/index.php?title=Liberec&diff=next&oldid=2320801
-        if self.site.lang == 'eo':
-            ignore += [39]
+        #if self.site.lang == 'eo':
+        #    ignore += [39]
         text = pywikibot.html2unicode(text, ignore = ignore)
         return text
 



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to