mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Make sure to normalize the whitespace on help.
This commit is contained in:
parent
e23bf4167b
commit
bc7083506f
@ -133,10 +133,9 @@ def getHelp(method, name=None):
|
|||||||
doclines = method.__doc__.splitlines()
|
doclines = method.__doc__.splitlines()
|
||||||
s = '%s %s' % (name, doclines.pop(0))
|
s = '%s %s' % (name, doclines.pop(0))
|
||||||
if doclines:
|
if doclines:
|
||||||
doclines = imap(str.strip, ifilter(None, doclines))
|
|
||||||
help = ' '.join(doclines)
|
help = ' '.join(doclines)
|
||||||
s = '(%s) -- %s' % (ircutils.bold(s), help)
|
s = '(%s) -- %s' % (ircutils.bold(s), help)
|
||||||
return s
|
return utils.normalizeWhitespace(s)
|
||||||
|
|
||||||
def getSyntax(method, name=None):
|
def getSyntax(method, name=None):
|
||||||
if name is None:
|
if name is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user