##// 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 s = s + '\n';
426 s = s + '\n';
427 var toinsert = this.create_output_area();
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 this._safe_append(toinsert);
432 this._safe_append(toinsert);
430 }
433 }
431 };
434 };
@@ -434,7 +437,7 b' var IPython = (function (IPython) {'
434 OutputArea.prototype.append_stream = function (json) {
437 OutputArea.prototype.append_stream = function (json) {
435 // temporary fix: if stream undefined (json file written prior to this patch),
438 // temporary fix: if stream undefined (json file written prior to this patch),
436 // default to most likely stdout:
439 // default to most likely stdout:
437 if (json.stream == undefined){
440 if (json.stream === undefined){
438 json.stream = 'stdout';
441 json.stream = 'stdout';
439 }
442 }
440 var text = json.text;
443 var text = json.text;
@@ -464,7 +467,10 b' var IPython = (function (IPython) {'
464
467
465 // If we got here, attach a new div
468 // If we got here, attach a new div
466 var toinsert = this.create_output_area();
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 this._safe_append(toinsert);
474 this._safe_append(toinsert);
469 };
475 };
470
476
General Comments 0
You need to be logged in to leave comments. Login now