Revision: 3974 Author: wikipedian Date: 2007-08-06 16:38:08 +0000 (Mon, 06 Aug 2007)
Log Message: ----------- showHelp(): strip newlines
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-06 16:25:44 UTC (rev 3973) +++ trunk/pywikipedia/wikipedia.py 2007-08-06 16:38:08 UTC (rev 3974) @@ -4561,7 +4561,7 @@ helpText = module.__doc__.decode('utf-8') if hasattr(module, 'docuReplacements'): for key, value in module.docuReplacements.iteritems(): - helpText = helpText.replace(key, value) + helpText = helpText.replace(key, value.strip('\n\r')) output(helpText) except: raise