浏览代码

ob-plantuml: support for svg output files

* lisp/ob-plantuml.el (org-babel-execute:plantuml): support for svg
  output files
Eric Schulte 14 年之前
父节点
当前提交
2f4db36f4b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lisp/ob-plantuml.el

+ 2 - 0
lisp/ob-plantuml.el

@@ -63,6 +63,8 @@ This function is called by `org-babel-execute-src-block'."
 		(concat "java -jar "
 			(shell-quote-argument
 			 (expand-file-name org-plantuml-jar-path))
+			(if (string= (file-name-extension out-file) "svg")
+			    "-tsvg" "")
 			" -p " cmdline " < "
 			(shell-quote-argument
 			 (expand-file-name in-file))