summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kappler <gregor@alcedo.(none)>2013-02-14 17:12:39 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2013-02-14 17:58:51 (GMT)
commit12d592b73223f3b0628e10f0f627447b1a312203 (patch)
tree980810d3558dc9402ccac9763e615c6b146dc364
parent0f6cb7f8501a47f41e72d12b2d30f3d1dfbd4ebe (diff)
downloadorg-mode-12d592b73223f3b0628e10f0f627447b1a312203.zip
org-mode-12d592b73223f3b0628e10f0f627447b1a312203.tar.gz
Export: Prevent babel src blocks from being evaluated if org-export-babel-evaluate is nil
* lisp/ox.el (org-export-as): Make sure org-export-babel-evaluate is not nil before calling `org-export-execute-babel-code'. TINYCHANGE
-rw-r--r--lisp/ox.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 049dcc5..732fcc3 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2810,7 +2810,7 @@ Return code as a string."
;; added some new ones.
(org-macro-initialize-templates)
(org-macro-replace-all org-macro-templates)
- (org-export-execute-babel-code)
+ (when org-export-babel-evaluate (org-export-execute-babel-code))
;; Update radio targets since keyword inclusion might have
;; added some more.
(org-update-radio-target-regexp)