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