fix file copy problem
This commit is contained in:
parent
98f2166db9
commit
7bad2b4361
@ -73,8 +73,9 @@
|
|||||||
|
|
||||||
(defun mermaid-run (fmt in-file out-file)
|
(defun mermaid-run (fmt in-file out-file)
|
||||||
(cond ((string= fmt "svg")
|
(cond ((string= fmt "svg")
|
||||||
(copy-file (concat (file-name-nondirectory in-file) ".svg")
|
(copy-file (concat in-file ".svg")
|
||||||
out-file))
|
out-file
|
||||||
|
:ok-if-exists t))
|
||||||
(t (mermaid-shell-command org-babel-temporary-directory
|
(t (mermaid-shell-command org-babel-temporary-directory
|
||||||
(concat org-mermaid-convert " "
|
(concat org-mermaid-convert " "
|
||||||
(file-name-nondirectory in-file)
|
(file-name-nondirectory in-file)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user