Revision: 7560 Author: xqt Date: 2009-10-29 08:53:34 +0000 (Thu, 29 Oct 2009)
Log Message: ----------- Don't put spaces between : and ;
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2009-10-29 07:01:35 UTC (rev 7559) +++ trunk/pywikipedia/cosmetic_changes.py 2009-10-29 08:53:34 UTC (rev 7560) @@ -416,7 +416,7 @@ If there are any complaints, please file a bug report. """ if not self.redirect: - text = pywikibot.replaceExcept(text, r'(?m)^(?P<bullet>(*+|#+):*)(?P<char>[^\s*#:].+?)', '\g<bullet> \g<char>', ['comment', 'math', 'nowiki', 'pre']) + text = pywikibot.replaceExcept(text, r'(?m)^(?P<bullet>(*+|#+)[:;]*)(?P<char>[^\s*#:;].+?)', '\g<bullet> \g<char>', ['comment', 'math', 'nowiki', 'pre']) return text
#from fixes.py