From 3c1fe84f52b198def465024f16a6e1afe8db889a Mon Sep 17 00:00:00 2001 From: MinRK Date: Mon, 17 Mar 2014 17:32:12 -0700 Subject: [PATCH] Don't autoclose strings CodeMirror doesn't do the right thing with triple-quoted strings, so don't let it try. --- IPython/html/static/notebook/js/codecell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 3ef98ff09..a298f180e 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -102,7 +102,8 @@ var IPython = (function (IPython) { mode: 'ipython', theme: 'ipython', matchBrackets: true, - autoCloseBrackets: true + // don't auto-close strings because of CodeMirror #2385 + autoCloseBrackets: "()[]{}" } };