Revision: 4003 Author: wikipedian Date: 2007-08-07 23:10:35 +0000 (Tue, 07 Aug 2007)
Log Message: ----------- indentation proposal
Modified Paths: -------------- branches/pywikipedia/i18n/selflink.py
Modified: branches/pywikipedia/i18n/selflink.py =================================================================== --- branches/pywikipedia/i18n/selflink.py 2007-08-07 21:38:17 UTC (rev 4002) +++ branches/pywikipedia/i18n/selflink.py 2007-08-07 23:10:35 UTC (rev 4003) @@ -108,7 +108,24 @@ # at the end of the link, reset the color to default colors = [None for c in text[max(0, match.start() - context) : match.start()]] + [12 for c in text[match.start() : match.end()]] + [None for c in text[match.end() : match.end() + context]] wikipedia.output(text[max(0, match.start() - context) : match.end() + context], colors = colors) - choice = wikipedia.inputChoice(_(u'\nWhat shall be done with this selflink?'), [_('unlink'), _('make bold'), _('skip'), _('edit'), _('more context')], [_('u [unlink hotkey]'), _('b [make bold hotkey]'), _('s [skip hotkey]'), _('e [edit hotkey]'), _('m [more context hotkey]')], _('u [unlink hotkey]')) + choice = wikipedia.inputChoice( + _(u'\nWhat shall be done with this selflink?'), + [ + _('unlink'), + _('make bold'), + _('skip'), + _('edit'), + _('more context') + ], + [ + _('u [unlink hotkey]'), + _('b [make bold hotkey]'), + _('s [skip hotkey]'), + _('e [edit hotkey]'), + _('m [more context hotkey]') + ], + _('u [unlink hotkey]') + ) wikipedia.output(u'')
if choice == _('s [skip hotkey]'):
pywikipedia-l@lists.wikimedia.org