From 0dfaa7881dd43389e35c737ef1e4e48f738abe3c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 3 Apr 2003 07:38:46 +0000 Subject: [PATCH] Normalize whitespace in pydoc --- plugins/FunCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index d62370234..f494ae71c 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -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: