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

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