##// END OF EJS Templates
call append_text from append_map
MinRK -
Show More
@@ -425,7 +425,10 b' var IPython = (function (IPython) {'
425 425 }
426 426 s = s + '\n';
427 427 var toinsert = this.create_output_area();
428 this.append_text(s, {}, toinsert).addClass('output_pyerr');
428 var append_text = OutputArea.append_map['text/plain'];
429 if (append_text) {
430 append_text.apply(this, [s, {}, toinsert]).addClass('output_pyerr');
431 }
429 432 this._safe_append(toinsert);
430 433 }
431 434 };
@@ -434,7 +437,7 b' var IPython = (function (IPython) {'
434 437 OutputArea.prototype.append_stream = function (json) {
435 438 // temporary fix: if stream undefined (json file written prior to this patch),
436 439 // default to most likely stdout:
437 if (json.stream == undefined){
440 if (json.stream === undefined){
438 441 json.stream = 'stdout';
439 442 }
440 443 var text = json.text;
@@ -464,7 +467,10 b' var IPython = (function (IPython) {'
464 467
465 468 // If we got here, attach a new div
466 469 var toinsert = this.create_output_area();
467 this.append_text(text, {}, toinsert).addClass("output_stream "+subclass);
470 var append_text = OutputArea.append_map['text/plain'];
471 if (append_text) {
472 append_text.apply(this, [text, {}, toinsert]).addClass("output_stream " + subclass);
473 }
468 474 this._safe_append(toinsert);
469 475 };
470 476
General Comments 0
You need to be logged in to leave comments. Login now