summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2014-11-22 00:04:51 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2014-11-22 00:04:51 +0100
commit3953cb19b4a907c620bd6260348ee8a6396646b1 (patch)
tree895e06ce62191632f3c5ad301848ea14c83b1102
parent40f2b885f67585f500ae0bfec2c4c8c511de30b2 (diff)
parentaa65ac35aa4c82cf4db9d5bc6bff55afb3a9089b (diff)
downloadorg-mode-3953cb19b4a907c620bd6260348ee8a6396646b1.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ob-js.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-js.el b/lisp/ob-js.el
index 47355b3..e126787 100644
--- a/lisp/ob-js.el
+++ b/lisp/ob-js.el
@@ -114,7 +114,7 @@ Convert an elisp value into a string of js source code
specifying a variable of the same value."
(if (listp var)
(concat "[" (mapconcat #'org-babel-js-var-to-js var ", ") "]")
- (format "%S" var)))
+ (replace-regexp-in-string "\n" "\\\\n" (format "%S" var))))
(defun org-babel-prep-session:js (session params)
"Prepare SESSION according to the header arguments specified in PARAMS."