http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11411
Revision: 11411 Author: xqt Date: 2013-04-21 13:04:36 +0000 (Sun, 21 Apr 2013) Log Message: ----------- revert r11400 since the bug is solved in r11410
Modified Paths: -------------- branches/rewrite/scripts/cosmetic_changes.py
Modified: branches/rewrite/scripts/cosmetic_changes.py =================================================================== --- branches/rewrite/scripts/cosmetic_changes.py 2013-04-21 12:58:43 UTC (rev 11410) +++ branches/rewrite/scripts/cosmetic_changes.py 2013-04-21 13:04:36 UTC (rev 11411) @@ -172,13 +172,13 @@ text = self.fixSyntaxSave(text) text = self.cleanUpLinks(text) text = self.cleanUpSectionHeaders(text) -## text = self.putSpacesInLists(text) + text = self.putSpacesInLists(text) text = self.translateAndCapitalizeNamespaces(text) ## text = self.translateMagicWords(text) text = self.replaceDeprecatedTemplates(text) ## text = self.resolveHtmlEntities(text) text = self.validXhtml(text) -## text = self.removeUselessSpaces(text) + text = self.removeUselessSpaces(text) text = self.removeNonBreakingSpaceBeforePercent(text)
text = self.fixHtml(text) @@ -605,7 +605,7 @@ old = '[' + old[0].upper() + old[0].lower() + ']' + old[1:] text = pywikibot.replaceExcept( text, - r'{{([mM][sS][gG]:)?%s(?P<parameters>|[^}]+|)}}' % old, + r'{{([mM][sS][gG]:)?' + old + '(?P<parameters>|[^}]+|)}}', new, exceptions) return text
pywikipedia-svn@lists.wikimedia.org