Normalize whitespace in pydoc

This commit is contained in:
Jeremy Fincher 2003-04-03 07:38:46 +00:00
parent 336c6fdff9
commit 0dfaa7881d

View File

@ -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: