mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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
|
return
|
||||||
try:
|
try:
|
||||||
s = eval(funcname + '.__doc__')
|
s = eval(funcname + '.__doc__')
|
||||||
s = s.replace('\n\n', '. ')
|
s = s.replace('\n\n', '. ')
|
||||||
s = s.replace('\n', ' ')
|
s = ' '.join(s.split())
|
||||||
except NameError:
|
except NameError:
|
||||||
s = 'No such function exists.'
|
s = 'No such function exists.'
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user