Revision: 4272 Author: wikipedian Date: 2007-09-13 15:26:07 +0000 (Thu, 13 Sep 2007)
Log Message: ----------- Disabled putSpacesInLists() because of a bug, and because its usefulness is disputed
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2007-09-13 13:42:44 UTC (rev 4271) +++ trunk/pywikipedia/cosmetic_changes.py 2007-09-13 15:26:07 UTC (rev 4272) @@ -85,7 +85,8 @@ text = self.standardizeCategories(text) text = self.cleanUpLinks(text) text = self.cleanUpSectionHeaders(text) - text = self.putSpacesInLists(text) + # Disabled because of a bug, and because its usefulness is disputed + # text = self.putSpacesInLists(text) text = self.translateAndCapitalizeNamespaces(text) text = self.removeDeprecatedTemplates(text) text = self.resolveHtmlEntities(text) @@ -306,6 +307,7 @@ and French Wikipedia. It might be that it is not wanted on other wikis. If there are any complaints, please file a bug report. """ + # FIXME: This breaks redirects. text = wikipedia.replaceExcept(text, r'(?m)^(?P<bullet>(*+|#+):*)(?P<char>[^\s*#:].+?)', '\g<bullet> \g<char>', ['comment', 'math', 'nowiki', 'pre']) return text