Revision: 7728
Author: xqt
Date: 2009-12-02 15:39:17 +0000 (Wed, 02 Dec 2009)
Log Message:
-----------
new pages never isRedirectPage(); exclude capitalize_redirects from putSpaceInLists
(bugfix for #2906796)
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2009-12-01 20:52:47 UTC (rev 7727)
+++ trunk/pywikipedia/cosmetic_changes.py 2009-12-02 15:39:17 UTC (rev 7728)
@@ -444,7 +444,7 @@
If there are any complaints, please file a bug report.
"""
exceptions = ['comment', 'math', 'nowiki', 'pre',
'source', 'timeline']
- if not self.redirect:
+ if not self.redirect and pywikibot.calledModuleName() <>
'capitalize_redirects':
text = pywikibot.replaceExcept(text,
r'(?m)^(?P<bullet>[:;]*(\*+|#+)[:;\*#]*)(?P<char>[^\s\*#:;].+?)',
'\g<bullet> \g<char>', exceptions)
return text
Show replies by date