Преглед на файлове

ox-latex: tiny refactoring.

* lisp/ox-latex.el (org-latex--insert-compiler): Refactor.
Aaron Ecay преди 9 години
родител
ревизия
79dab621f9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
lisp/ox-latex.el

@@ -1610,7 +1610,7 @@ 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)))
        (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))))