Revision: 7690
Author:   xqt
Date:     2009-11-24 17:04:42 +0000 (Tue, 24 Nov 2009)

Log Message:
-----------
Don't putSpacesInLists within <timeline /> (Do not break line comments)

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

Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py       2009-11-24 11:05:07 UTC (rev 
7689)
+++ trunk/pywikipedia/cosmetic_changes.py       2009-11-24 17:04:42 UTC (rev 
7690)
@@ -443,8 +443,9 @@
         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']
         if not self.redirect:
-            text = pywikibot.replaceExcept(text, 
r'(?m)^(?P<bullet>[:;]*(\*+|#+)[:;\*#]*)(?P<char>[^\s\*#:;].+?)', '\g<bullet> 
\g<char>', ['comment', 'math', 'nowiki', 'pre', 'source'])
+            text = pywikibot.replaceExcept(text, 
r'(?m)^(?P<bullet>[:;]*(\*+|#+)[:;\*#]*)(?P<char>[^\s\*#:;].+?)', '\g<bullet> 
\g<char>', exceptions)
         return text
 
     #from fixes.py



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

Reply via email to