Browse Source

org-export-string now accepts symbolic or string fmt argument

* lisp/org-exp.el (org-export-string): Use `format' to construct
  function call to allow symbolic or string arguments.
Eric Schulte 9 years ago
parent
commit
f8000a9bc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-exp.el

+ 1 - 1
lisp/org-exp.el

@@ -2658,7 +2658,7 @@ to the value of `temporary-file-directory'."
 	    (setq org-local-vars (org-get-local-variables)))
 	  (eval ;; convert to fmt -- mimicing `org-run-like-in-org-mode'
 	   (list 'let org-local-vars
-		 (list (intern (concat "org-export-as-" fmt))
+		 (list (intern (format "org-export-as-%s" fmt))
 		       nil nil nil ''string t))))
       (delete-file tmp-file))))