Explorar o código

ox-latex: Fix 7b36019069490e30084cd6d9cb72965a956d5564

* lisp/ox-latex.el (org-latex--inline-image): Fix commit
  7b36019069490e30084cd6d9cb72965a956d5564.
Nicolas Goaziou %!s(int64=12) %!d(string=hai) anos
pai
achega
90faed3672
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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