ipython/ipython — pull request #2662 by y-p (2012-12-06 22:42:27+00:00)
Title: qtconsole: wrap argument list in tooltip to match width of text body

previously, a function with a long argument list would produce
a very wide tooltip, hurting readability.

Since the width of the docstring body is chosen by the developer
whereas the formatting of the argument list is currently not, it's
reasonable to wrap the argument list width to the maximum of
a) 80 characters, or b) maximum length of a line in the docstring body.

This improved readability, without unduly affecting the appearence
of the docstring body itself.

closes #2661

I'm happy to do add any additional tests or changes required to get this merged.