From 07add9dc195331c30283d36b0aa2a147e5882559 2011-11-30 19:04:17 From: Thomas Kluyver Date: 2011-11-30 19:04:17 Subject: [PATCH] Unindent custom docstrings of objects. --- diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 9ef0a56..fdec0b5 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -105,7 +105,7 @@ def getdoc(obj): else: # if we get extra info, we add it to the normal docstring. if isinstance(ds, basestring): - return ds + return inspect.cleandoc(ds) try: return inspect.getdoc(obj)