mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
fix firefox (windows) break line on empty prompt number
This commit is contained in:
parent
9ab78ba545
commit
ea32220f8f
@ -15,7 +15,7 @@ var IPython = (function (IPython) {
|
||||
|
||||
var CodeCell = function (notebook) {
|
||||
this.code_mirror = null;
|
||||
this.input_prompt_number = ' ';
|
||||
this.input_prompt_number = ' ';
|
||||
this.is_completing = false;
|
||||
this.completion_cursor = null;
|
||||
this.outputs = [];
|
||||
@ -588,7 +588,7 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
CodeCell.prototype.set_input_prompt = function (number) {
|
||||
var n = number || ' ';
|
||||
var n = number || ' ';
|
||||
this.input_prompt_number = n
|
||||
this.element.find('div.input_prompt').html('In [' + n + ']:');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user