Revision: 6412 Author: nicdumz Date: 2009-02-22 16:13:01 +0000 (Sun, 22 Feb 2009)
Log Message: ----------- Reverting r6296 http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=6296 Since that revision, changes like "^\r\n" "" to remove leading newlines did not work anymore.
Modified Paths: -------------- trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2009-02-22 14:36:55 UTC (rev 6411) +++ trunk/pywikipedia/replace.py 2009-02-22 16:13:01 UTC (rev 6412) @@ -371,7 +371,7 @@ % page.aslink()) break new_text = self.doReplacements(new_text) - if new_text.strip().replace('\r\n', '\n') == original_text.strip().replace('\r\n', '\n'): + if new_text == original_text: wikipedia.output('No changes were necessary in %s' % page.aslink()) break
pywikipedia-l@lists.wikimedia.org