Revision: 8600 Author: xqt Date: 2010-09-28 10:31:32 +0000 (Tue, 28 Sep 2010)
Log Message: ----------- do not change digits iside tables for now
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2010-09-27 09:37:41 UTC (rev 8599) +++ trunk/pywikipedia/cosmetic_changes.py 2010-09-28 10:31:32 UTC (rev 8600) @@ -727,9 +727,9 @@ # do not change digits inside html-tags pattern = re.compile(u'<[/]*?[^</]+?[/]*?>', re.UNICODE) exceptions.append(pattern) -## disabled for now: some problems with wring picture size -## for i in range(0,10): -## text = pywikibot.replaceExcept(text, str(i), u'٠١٢٣٤٥٦٧٨٩'[i], exceptions) + exceptions.append('table') #exclude tables for now + for i in range(0,10): + text = pywikibot.replaceExcept(text, str(i), u'٠١٢٣٤٥٦٧٨٩'[i], exceptions) return text
# Retrieved from "http://commons.wikimedia.org/wiki/Commons:Tools/pywiki_file_description_clea..."
pywikipedia-svn@lists.wikimedia.org