http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11341
Revision: 11341 Author: xqt Date: 2013-04-05 16:23:21 +0000 (Fri, 05 Apr 2013) Log Message: ----------- hide the flat template marker, update from trunk r11340
Modified Paths: -------------- branches/rewrite/pywikibot/textlib.py
Modified: branches/rewrite/pywikibot/textlib.py =================================================================== --- branches/rewrite/pywikibot/textlib.py 2013-04-05 16:22:05 UTC (rev 11340) +++ branches/rewrite/pywikibot/textlib.py 2013-04-05 16:23:21 UTC (rev 11341) @@ -130,6 +130,8 @@ Rvalue = re.compile('{{{.+?}}}') Rmarker1 = re.compile('%(mark)s(\d+)%(mark)s' % {'mark': marker1}) Rmarker2 = re.compile('%(mark)s(\d+)%(mark)s' % {'mark': marker2}) + # hide the flat template marker + dontTouchRegexes.append(Rmarker1) values = {} count = 0 for m in Rvalue.finditer(text):