Browse Source

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
Gregor Kappler 5 years ago
parent
commit
12d592b732
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox.el

+ 1 - 1
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)