##// END OF EJS Templates
commands: Check if helptext contains a newline before we split
David Soria Parra -
r9280:b694531a default
parent child Browse files
Show More
@@ -1555,6 +1555,9 b' def help_(ui, name=None, with_version=Fa'
1555 1555 raise error.UnknownCommand(name)
1556 1556
1557 1557 doc = gettext(mod.__doc__) or _('no help text available')
1558 if '\n' not in doc:
1559 head, tail = doc, ""
1560 else:
1558 1561 head, tail = doc.split('\n', 1)
1559 1562 ui.write(_('%s extension - %s\n\n') % (name.split('.')[-1], head))
1560 1563 if tail:
General Comments 0
You need to be logged in to leave comments. Login now