fix firefox (windows) break line on empty prompt number

This commit is contained in:
Bussonnier Matthias 2011-11-25 11:27:07 +01:00 committed by Fernando Perez
parent 9ab78ba545
commit ea32220f8f

View File

@ -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 + ']:');
};