diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 47c2a9e..971e4da 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -603,6 +603,7 @@ class Inspector(Colorable): _len = max(len(h) for h in heads) for head, body in zip(heads, bodies): + body = body.strip('\n') delim = '\n' if '\n' in body else ' ' text += self.__head(head+':') + (_len - len(head))*' ' +delim + body +'\n'