Fix the "test for nothing was streamed" so it doesn't add empty elements -- but only when there wasn't already something there.

This commit is contained in:
Michael Droettboom 2012-04-26 10:00:16 -04:00
parent a9453360a9
commit b471db22e0

View File

@ -57,7 +57,6 @@ IPython.utils = (function (IPython) {
var cmds = [];
var opener = "";
var closer = "";
// \r does nothing, so shouldn't be included
while (re.test(txt)) {
var cmds = txt.match(re)[1].split(";");
closer = opened?"</span>":"";