mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 02:20:01 +00:00
ox-latex: tiny refactoring.
* lisp/ox-latex.el (org-latex--insert-compiler): Refactor.
This commit is contained in:
parent
9bbd9e5ae2
commit
79dab621f9
|
@ -1610,7 +1610,7 @@ INFO is a plist used as a communication channel."
|
||||||
INFO is a plist used as a communication channel."
|
INFO is a plist used as a communication channel."
|
||||||
(let ((compiler (plist-get info :latex-compiler)))
|
(let ((compiler (plist-get info :latex-compiler)))
|
||||||
(and (org-string-nw-p org-latex-compiler-file-string)
|
(and (org-string-nw-p org-latex-compiler-file-string)
|
||||||
(string-match-p (regexp-opt org-latex-compilers) (or compiler ""))
|
(member (or compiler "") org-latex-compilers)
|
||||||
(format org-latex-compiler-file-string compiler))))
|
(format org-latex-compiler-file-string compiler))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue