From ab3257a1428fa7e61a3f0b25d8410653ec42aa35 2011-03-22 00:33:13 From: Thomas Kluyver Date: 2011-03-22 00:33:13 Subject: [PATCH] Minor tweak to pinfo output formatting. closes gh-133 --- diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 243e941..e0affa1 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -512,7 +512,7 @@ class Inspector: src = getsource(obj.__class__,binary_file) if src is not None: source = self.format(src) - out.write(header('Source:\n')+source.rstrip()) + out.write(header('Source:\n')+source.rstrip()+'\n') source_success = True except Exception, msg: pass @@ -537,7 +537,7 @@ class Inspector: init_ds = None if init_def or init_ds: - out.writeln(header('\nConstructor information:')) + out.writeln(header('Constructor information:')) if init_def: out.write(header('Definition:\t')+ self.format(init_def)) if init_ds: