##// END OF EJS Templates
BUG: Fix broken codemirror highlighting on file rename....
BUG: Fix broken codemirror highlighting on file rename. When a users uses the rename dialog in the text editor, we call _set_mode_for_model on the returned model. The expected model to be returned from rename has no value for mimetype, which causes us to pass `undefined` to `CodeMirror.findModeByMIME`, which returns `undefined` back. We then try access an attribute of the (undefined) return value, causing an error. This now properly checks whether the `mimetype` attribute is set on the input model.
Scott Sanderson -
r19787:24e75c0b
Show More
Name Size Modified Last Commit Author
/ IPython / nbconvert / preprocessors
tests
__init__.py Loading ...
base.py Loading ...
clearoutput.py Loading ...
coalescestreams.py Loading ...
convertfigures.py Loading ...
csshtmlheader.py Loading ...
execute.py Loading ...
extractoutput.py Loading ...
highlightmagics.py Loading ...
latex.py Loading ...
revealhelp.py Loading ...
svg2pdf.py Loading ...