mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Normalize whitespace in pydoc
This commit is contained in:
parent
336c6fdff9
commit
0dfaa7881d
@ -455,7 +455,7 @@ class FunCommands(callbacks.Privmsg):
|
||||
try:
|
||||
s = eval(funcname + '.__doc__')
|
||||
s = s.replace('\n\n', '. ')
|
||||
s = s.replace('\n', ' ')
|
||||
s = ' '.join(s.split())
|
||||
except NameError:
|
||||
s = 'No such function exists.'
|
||||
except AttributeError:
|
||||
|
Loading…
Reference in New Issue
Block a user