fix file copy problem

This commit is contained in:
Rongsong Shen 2018-04-07 11:43:33 +08:00
parent 98f2166db9
commit 7bad2b4361

View File

@ -73,8 +73,9 @@
(defun mermaid-run (fmt in-file out-file)
(cond ((string= fmt "svg")
(copy-file (concat (file-name-nondirectory in-file) ".svg")
out-file))
(copy-file (concat in-file ".svg")
out-file
:ok-if-exists t))
(t (mermaid-shell-command org-babel-temporary-directory
(concat org-mermaid-convert " "
(file-name-nondirectory in-file)