Revision: 5785 Author: valhallasw Date: 2008-08-03 18:37:10 +0000 (Sun, 03 Aug 2008)
Log Message: ----------- Do *not* strip newlines from start; this creates an unnecessary revision if a page is saved without changes. Prepended newlines can be stripped before put(), not after get().
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-08-03 13:35:35 UTC (rev 5784) +++ trunk/pywikipedia/wikipedia.py 2008-08-03 18:37:10 UTC (rev 5785) @@ -786,7 +786,7 @@ # Unescape HTML characters, strip whitespace and postconvert pagetext = text[i1:i2] pagetext = unescape(pagetext) - pagetext = pagetext.strip() + pagetext = pagetext.rstrip() pagetext = self.site().post_get_convert(pagetext) m = self.site().redirectRegex().match(pagetext)