Revision: 6170 Author: purodha Date: 2008-12-19 12:30:48 +0000 (Fri, 19 Dec 2008)
Log Message: ----------- Error correction. How could this go undetected for so long?
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-12-19 10:16:42 UTC (rev 6169) +++ trunk/pywikipedia/wikipedia.py 2008-12-19 12:30:48 UTC (rev 6170) @@ -3724,7 +3724,7 @@ newtext = s + separator + s2 else: # calculate what was after the categories links on the page - firstafter = s2.find(marker) + firstafter = s2.find(marker) + len(marker) # Is there any text in the 'after' part that means we should keep it after? if "</noinclude>" in s2[firstafter:]: newtext = s2[:firstafter].replace(marker,'') + s + s2[firstafter:]