ipython/ipython — pull request #4310 by jakobgager (2013-09-30 13:31:40+00:00)
Title: Make the strip_math_space filter aware of html tags

This fixes #4309

The old `strip_math_space` filter crops some output if no closing `$` is found or if less than 2 line breaks are found after the starting `$`.

Moreover now only spaces and not newlines are stripped.