From 881d4e7917c3d436b39bbcd9d5e28f20b37fc385 2010-09-13 19:09:01 From: Fernando Perez Date: 2010-09-13 19:09:01 Subject: [PATCH] Fix for 'man' formatting (mostly on OSX, but the fix is OK on linux) --- diff --git a/IPython/zmq/zmqshell.py b/IPython/zmq/zmqshell.py index 37e8e7d..774c386 100644 --- a/IPython/zmq/zmqshell.py +++ b/IPython/zmq/zmqshell.py @@ -530,7 +530,8 @@ class ZMQInteractiveShell(InteractiveShell): if os.name == 'posix': def magic_man(self, arg_s): """Find the man page for the given command and display in pager.""" - page.page(self.shell.getoutput('man %s' % arg_s, split=False)) + page.page(self.shell.getoutput('man %s | col -b' % arg_s, + split=False)) # FIXME: this is specific to the GUI, so we should let the gui app load # magics at startup that are only for the gui. Once the gui app has proper