diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-09-02 17:58:08 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-09-02 17:58:08 -0600 |
commit | b0dce5a074c13945f4cb747e76986f4df4f9eb1f (patch) | |
tree | 032290376bc6f6f9268b3ab77a3b70cad771d72e | |
parent | ebad875b122e6e39bc29967bc2ef8c9ee5d5c641 (diff) | |
download | org-mode-b0dce5a074c13945f4cb747e76986f4df4f9eb1f.tar.gz |
ob-plantuml: now expanding file names before shell quoting
* lisp/ob-plantuml.el (org-babel-execute:plantuml): now expanding file
names before shell quoting
-rw-r--r-- | lisp/ob-plantuml.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index cb5ca12..cf1d9cc 100644 --- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -60,11 +60,14 @@ This function is called by `org-babel-execute-src-block'." (cmd (if (not org-plantuml-jar-path) (error "`org-plantuml-jar-path' is not set") (concat "java -jar " - (shell-quote-argument org-plantuml-jar-path) + (shell-quote-argument + (expand-file-name org-plantuml-jar-path)) " -p " cmdline " < " - (shell-quote-argument in-file) + (shell-quote-argument + (expand-file-name in-file)) " > " - (shell-quote-argument out-file))))) + (shell-quote-argument + (expand-file-name out-file)))))) (unless (file-exists-p org-plantuml-jar-path) (error "Could not find plantuml.jar at %s" org-plantuml-jar-path)) (with-temp-file in-file (insert (concat "@startuml\n" body "\n@enduml"))) |