Quote path argument in ob-ditaa

* lisp/ob-ditaa.el (org-babel-execute:ditaa): Quote path to ditaa executable.
This commit is contained in:
Gregory J. Grubbs 2010-07-18 09:01:24 +00:00 committed by Carsten Dominik
parent aaea4a8dbf
commit 7d2dc48b2a
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ This function is called by `org-babel-execute-src-block'."
(error "Could not find ditaa.jar at %s" org-ditaa-jar-path)) (error "Could not find ditaa.jar at %s" org-ditaa-jar-path))
(with-temp-file in-file (insert body)) (with-temp-file in-file (insert body))
(message (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " " out-file)) (message (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " " out-file))
(shell-command (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " " out-file)) (shell-command (concat "java -jar " (shell-quote-argument org-ditaa-jar-path) " " cmdline " " in-file " " out-file))
out-file)) out-file))
(defun org-babel-prep-session:ditaa (session params) (defun org-babel-prep-session:ditaa (session params)