diff --git a/IPython/frontend/html/notebook/static/js/utils.js b/IPython/frontend/html/notebook/static/js/utils.js
index 4c5b6d3..f81c7d4 100644
--- a/IPython/frontend/html/notebook/static/js/utils.js
+++ b/IPython/frontend/html/notebook/static/js/utils.js
@@ -70,7 +70,7 @@ IPython.utils = (function (IPython) {
txt = txt.replace(re, closer + opener)
}
if (opened) txt += ""
- return txt.trim()
+ return txt
}