Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix firefox (windows) break line on empty prompt number #1042

Closed
wants to merge 1 commit into from

2 participants

Matthias Bussonnier Fernando Perez
Matthias Bussonnier
Owner

Firefox on windows sometime put the end of the prompt on a new line.
This should fix it (hopefully)

Sorry it's github-edited

Fernando Perez
Owner

Great, thanks! I'd also noticed it on ffox in linux, and it was very annoying. I rebased to avoid a recursive merge for just one commit, pushed as e87124e. Keep up the great work!

Fernando Perez fperez closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2011
  1. Matthias Bussonnier
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/frontend/html/notebook/static/js/codecell.js
4 IPython/frontend/html/notebook/static/js/codecell.js
View
@@ -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 + ']:');
};
Something went wrong with that request. Please try again.