Revision: 8603 Author: xqt Date: 2010-10-04 19:41:12 +0000 (Mon, 04 Oct 2010)
Log Message: ----------- update from trunk r8600
Modified Paths: -------------- branches/rewrite/scripts/cosmetic_changes.py
Modified: branches/rewrite/scripts/cosmetic_changes.py =================================================================== --- branches/rewrite/scripts/cosmetic_changes.py 2010-10-04 19:33:48 UTC (rev 8602) +++ branches/rewrite/scripts/cosmetic_changes.py 2010-10-04 19:41:12 UTC (rev 8603) @@ -282,7 +282,6 @@ text = interwikiR.sub(r'[[\1]]', text) return text
- def standardizePageFooter(self, text): """ Makes sure that categories are put to the correct position, but @@ -617,6 +616,7 @@ # do not change digits inside html-tags pattern = re.compile(u'<[/]*?[^</]+?[/]*?>', re.UNICODE) exceptions.append(pattern) + exceptions.append('table') #exclude tables for now for i in range(0,10): text = pywikibot.replaceExcept(text, str(i), u'٠١٢٣٤٥٦٧٨٩'[i], exceptions) return text