##// END OF EJS Templates
Merge pull request #2561 from takluyver/notebook-carriage-return...
Bussonnier Matthias -
r8705:a16e0e12 merge
parent child Browse files
Show More
@@ -195,7 +195,8 b' IPython.utils = (function (IPython) {'
195 tmp = txt;
195 tmp = txt;
196 do {
196 do {
197 txt = tmp;
197 txt = tmp;
198 tmp = txt.replace(/^.*\r(?!\n)/gm, '');
198 tmp = txt.replace(/\r+\n/gm, '\n'); // \r followed by \n --> newline
199 tmp = tmp.replace(/^.*\r+/gm, ''); // Other \r --> clear line
199 } while (tmp.length < txt.length);
200 } while (tmp.length < txt.length);
200 return txt;
201 return txt;
201 }
202 }
General Comments 0
You need to be logged in to leave comments. Login now