From 7d2dc48b2aae27a66cc9813797c14dd457c209f4 Mon Sep 17 00:00:00 2001 From: "Gregory J. Grubbs" Date: Sun, 18 Jul 2010 09:01:24 +0000 Subject: [PATCH] Quote path argument in ob-ditaa * lisp/ob-ditaa.el (org-babel-execute:ditaa): Quote path to ditaa executable. --- lisp/ob-ditaa.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index cedb230da..436535e19 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -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)) (with-temp-file in-file (insert body)) (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)) (defun org-babel-prep-session:ditaa (session params)