Prechádzať zdrojové kódy

ox-latex: Fix 7b36019069490e30084cd6d9cb72965a956d5564

* lisp/ox-latex.el (org-latex--inline-image): Fix commit
  7b36019069490e30084cd6d9cb72965a956d5564.
Nicolas Goaziou 12 rokov pred
rodič
commit
90faed3672
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      lisp/ox-latex.el

+ 3 - 2
lisp/ox-latex.el

@@ -1856,8 +1856,9 @@ used as a communication channel."
       (setq image-code
 	    (format "\\includegraphics%s{%s}"
 		    (cond ((not (org-string-nw-p options)) "")
-			  ((= (aref options 0) ?,) (substring options 1))
-			  (t options))
+			  ((= (aref options 0) ?,)
+			   (format "[%s]"(substring options 1)))
+			  (t (format "[%s]" options)))
 		    path)))
     ;; Return proper string, depending on FLOAT.
     (case float