http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9538
Revision: 9538 Author: xqt Date: 2011-09-24 10:46:52 +0000 (Sat, 24 Sep 2011) Log Message: ----------- disable putSpacesInLists() inside templates due to bug #3412838 reported by hercule
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2011-09-23 06:05:44 UTC (rev 9537) +++ trunk/pywikipedia/cosmetic_changes.py 2011-09-24 10:46:52 UTC (rev 9538) @@ -488,12 +488,14 @@ German, and French Wikipedia. It might be that it is not wanted on other wikis. If there are any complaints, please file a bug report. """ - exceptions = ['comment', 'math', 'nowiki', 'pre', 'source', 'timeline'] + exceptions = ['comment', 'math', 'nowiki', 'pre', 'source', 'template', + 'timeline'] if not (self.redirect or self.template) and \ pywikibot.calledModuleName() != 'capitalize_redirects': text = pywikibot.replaceExcept( text, - r'(?m)^(?P<bullet>[:;]*(*+|#+)[:;*#]*)(?P<char>[^\s*#:;].+?)', '\g<bullet> \g<char>', + r'(?m)^(?P<bullet>[:;]*(*+|#+)[:;*#]*)(?P<char>[^\s*#:;].+?)', + '\g<bullet> \g<char>', exceptions) return text
pywikipedia-svn@lists.wikimedia.org