summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2016-07-17 10:04:28 (GMT)
committer Nicolas Goaziou <mail@nicolasgoaziou.fr>2016-07-17 10:04:28 (GMT)
commit8301b72ed2d6c4a518293b1e8df67705dad75605 (patch)
tree9aefe606d01c58a16d62bf51bf860e6807752dc4
parentebe7aa66928a01f3af89c9ebeb5c5e130a5b3265 (diff)
downloadorg-mode-maint.zip
org-mode-maint.tar.gz
Revert "ob-exp: Remove spurious comma un-escaping"release_8.3.5maint
This reverts commit 0279d84cd7f857535342b4ec3c2e70ac76c1ee27.
-rw-r--r--lisp/ob-exp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index e824992..a1a945f 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -48,6 +48,7 @@
(declare-function org-element-property "org-element" (property element))
(declare-function org-element-type "org-element" (element))
(declare-function org-id-get "org-id" (&optional pom create prefix))
+(declare-function org-escape-code-in-string "org-src" (s))
(defcustom org-export-babel-evaluate t
"Switch controlling code evaluation during export.
@@ -385,7 +386,7 @@ replaced with its value."
org-babel-exp-inline-code-template
org-babel-exp-code-template)
`(("lang" . ,(nth 0 info))
- ("body" . ,(nth 1 info))
+ ("body" . ,(org-escape-code-in-string (nth 1 info)))
("switches" . ,(let ((f (nth 3 info)))
(and (org-string-nw-p f) (concat " " f))))
("flags" . ,(let ((f (assq :flags (nth 2 info))))