Show More
@@ -57,7 +57,7 b' class APITest(NotebookTestBase):' | |||
|
57 | 57 | |
|
58 | 58 | nb.cells.append(new_heading_cell(u'Created by test ³')) |
|
59 | 59 | cc1 = new_code_cell(source=u'print(2*6)') |
|
60 |
cc1.outputs.append(new_output(output_type="stream", |
|
|
60 | cc1.outputs.append(new_output(output_type="stream", text=u'12')) | |
|
61 | 61 | cc1.outputs.append(new_output(output_type="execute_result", |
|
62 | 62 | mime_bundle={'image/png' : png_green_pixel}, |
|
63 | 63 | execution_count=1, |
@@ -453,7 +453,7 b' define([' | |||
|
453 | 453 | |
|
454 | 454 | |
|
455 | 455 | OutputArea.prototype.append_stream = function (json) { |
|
456 |
var text = json. |
|
|
456 | var text = json.text; | |
|
457 | 457 | var subclass = "output_"+json.name; |
|
458 | 458 | if (this.outputs.length > 0){ |
|
459 | 459 | // have at least one output to consider |
@@ -462,9 +462,9 b' define([' | |||
|
462 | 462 | // latest output was in the same stream, |
|
463 | 463 | // so append directly into its pre tag |
|
464 | 464 | // escape ANSI & HTML specials: |
|
465 |
last. |
|
|
465 | last.text = utils.fixCarriageReturn(last.text + json.text); | |
|
466 | 466 | var pre = this.element.find('div.'+subclass).last().find('pre'); |
|
467 |
var html = utils.fixConsole(last. |
|
|
467 | var html = utils.fixConsole(last.text); | |
|
468 | 468 | // The only user content injected with this HTML call is |
|
469 | 469 | // escaped by the fixConsole() method. |
|
470 | 470 | pre.html(html); |
General Comments 0
You need to be logged in to leave comments.
Login now