Revision: 4017 Author: wikipedian Date: 2007-08-09 14:16:14 +0000 (Thu, 09 Aug 2007)
Log Message: ----------- bugfix
Modified Paths: -------------- trunk/pywikipedia/selflink.py
Modified: trunk/pywikipedia/selflink.py =================================================================== --- trunk/pywikipedia/selflink.py 2007-08-09 14:11:30 UTC (rev 4016) +++ trunk/pywikipedia/selflink.py 2007-08-09 14:16:14 UTC (rev 4017) @@ -108,7 +108,7 @@ else: # at the beginning of the link, start red color. # at the end of the link, reset the color to default - wikipedia.output(text[m.start() - context : m.start()] + '\03{lightred}' + text[m.start() : m.end()] + '\03{default}' + text[m.end() : m.end() + context]) + wikipedia.output(text[match.start() - context : match.start()] + '\03{lightred}' + text[match.start() : match.end()] + '\03{default}' + text[match.end() : match.end() + context]) choice = wikipedia.inputChoice(u'\nWhat shall be done with this selflink?', ['unlink', 'make bold', 'skip', 'edit', 'more context'], ['U', 'b', 's', 'e', 'm'], 'u') wikipedia.output(u'')