author | David Soria Parra <dsp@php.net> |
Mon, 27 Jul 2009 02:12:17 +0200 | |
changeset 9280 | b694531a5aa7 |
parent 9279 | ca143d86727c |
child 9281 | 2a4131b264c3 |
--- a/mercurial/commands.py Sun Jul 26 02:33:38 2009 +0200 +++ b/mercurial/commands.py Mon Jul 27 02:12:17 2009 +0200 @@ -1555,7 +1555,10 @@ raise error.UnknownCommand(name) doc = gettext(mod.__doc__) or _('no help text available') - head, tail = doc.split('\n', 1) + if '\n' not in doc: + head, tail = doc, "" + else: + head, tail = doc.split('\n', 1) ui.write(_('%s extension - %s\n\n') % (name.split('.')[-1], head)) if tail: ui.write(minirst.format(tail, textwidth))