X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/84eb0351d8be4811897c8cf62a69757ff5d14001..c74587e6b0c545eb4fb57654a79ca88ea14a6764:/lisp/org/ob-plantuml.el diff --git a/lisp/org/ob-plantuml.el b/lisp/org/ob-plantuml.el index f455bc9bb4..da700527f7 100644 --- a/lisp/org/ob-plantuml.el +++ b/lisp/org/ob-plantuml.el @@ -1,11 +1,10 @@ ;;; ob-plantuml.el --- org-babel functions for plantuml evaluation -;; Copyright (C) 2010-2011 Free Software Foundation, Inc. +;; Copyright (C) 2010-2012 Free Software Foundation, Inc. ;; Author: Zhang Weize ;; Keywords: literate programming, reproducible research ;; Homepage: http://orgmode.org -;; Version: 7.4 ;; This file is part of GNU Emacs. @@ -62,6 +61,8 @@ This function is called by `org-babel-execute-src-block'." (expand-file-name org-plantuml-jar-path)) (if (string= (file-name-extension out-file) "svg") " -tsvg" "") + (if (string= (file-name-extension out-file) "eps") + " -teps" "") " -p " cmdline " < " (org-babel-process-file-name in-file) " > " @@ -70,7 +71,7 @@ This function is called by `org-babel-execute-src-block'." (error "Could not find plantuml.jar at %s" org-plantuml-jar-path)) (with-temp-file in-file (insert (concat "@startuml\n" body "\n@enduml"))) (message "%s" cmd) (org-babel-eval cmd "") - out-file)) + nil)) ;; signal that output has already been written to file (defun org-babel-prep-session:plantuml (session params) "Return an error because plantuml does not support sessions." @@ -79,4 +80,5 @@ This function is called by `org-babel-execute-src-block'." (provide 'ob-plantuml) + ;;; ob-plantuml.el ends here