Revision: 7585 Author: xqt Date: 2009-11-03 11:02:03 +0000 (Tue, 03 Nov 2009)
Log Message: ----------- validHTML feature by jandudik (#2890674)
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2009-11-03 09:57:15 UTC (rev 7584) +++ trunk/pywikipedia/cosmetic_changes.py 2009-11-03 11:02:03 UTC (rev 7585) @@ -372,7 +372,7 @@ return text
def validXhtml(self, text): - text = pywikibot.replaceExcept(text, r'<br>', r'<br />', ['comment', 'math', 'nowiki', 'pre']) + text = pywikibot.replaceExcept(text, r'(?i)<br[ /]*>', r'<br />', ['comment', 'math', 'nowiki', 'pre']) return text
def removeUselessSpaces(self, text):
pywikipedia-svn@lists.wikimedia.org