mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-11 16:08:15 +00:00
Fix incorrect funtion call
* lisp/ob-latex.el (org-babel-execute:latex): Call `file-name-sans-extension' instead of `file-base-name'.
This commit is contained in:
parent
cf6e54e90b
commit
b698fc2b57
@ -169,7 +169,8 @@ This function is called by `org-babel-execute-src-block'."
|
||||
((file-exists-p (concat (file-name-sans-extension tex-file) ".html"))
|
||||
(if (string-match "\\.html$" out-file)
|
||||
(shell-command "mv %s %s"
|
||||
(concat (file-name-base tex-file) ".html")
|
||||
(concat (file-name-sans-extension tex-file)
|
||||
".html")
|
||||
out-file)
|
||||
(error "HTML file produced but SVG file requested.")))))
|
||||
((string-match "\\.\\([^\\.]+\\)$" out-file)
|
||||
|
Loading…
Reference in New Issue
Block a user