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