http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11400
Revision: 11400 Author: xqt Date: 2013-04-20 17:24:43 +0000 (Sat, 20 Apr 2013) Log Message: ----------- putSpacesInLists() and removeUselessSpaces() temporary disabled due to bug #3611198; update from trunk r11399
Modified Paths: -------------- branches/rewrite/scripts/cosmetic_changes.py
Modified: branches/rewrite/scripts/cosmetic_changes.py =================================================================== --- branches/rewrite/scripts/cosmetic_changes.py 2013-04-20 17:19:39 UTC (rev 11399) +++ branches/rewrite/scripts/cosmetic_changes.py 2013-04-20 17:24:43 UTC (rev 11400) @@ -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]:)?' + old + '(?P<parameters>|[^}]+|)}}', + r'{{([mM][sS][gG]:)?%s(?P<parameters>|[^}]+|)}}' % old, new, exceptions) return text