Ver código fonte

ox-html.el (org-html-format-inline-image): Fix missing string in formatting string

* ox-html.el (org-html-format-inline-image): Fix missing string in
formatting string.

Thanks to Richard Stanton for reporting this.
Bastien Guerry 12 anos atrás
pai
commit
8091854eaf
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      lisp/ox-html.el

+ 2 - 2
lisp/ox-html.el

@@ -1226,8 +1226,8 @@ When STANDALONE-P is t, wrap the <img.../> into a <div>...</div>."
       (let ((img (format "<img src=\"%s\" %s/>" src attr)))
 	(format "\n<div%s class=\"figure\">%s%s\n</div>"
 		id (format "\n<p>%s</p>" img)
-		(when (and caption (not (string= caption "")))
-		  (format "\n<p>%s</p>" caption)))))
+		(if (and caption (not (string= caption "")))
+		    (format "\n<p>%s</p>" caption) ""))))
      (t (format "<img src=\"%s\" %s/>" src (concat attr id))))))
 
 (defun org-html--textarea-block (element)