Browse Source

HTML export: Fix inlining images

* lisp/org-html.el (org-html-should-inline-p): Only inline images
if they should be.
Carsten Dominik 14 years ago
parent
commit
64c4c9c5f1
1 changed files with 4 additions and 7 deletions
  1. 4 7
      lisp/org-html.el

+ 4 - 7
lisp/org-html.el

@@ -579,13 +579,10 @@ description.  See variables `org-export-html-inline-images' and
    (declare (special
 	     org-export-html-inline-images
 	     org-export-html-inline-image-extensions))
-   (or
-      (eq t org-export-html-inline-images)
-      (and
-	 org-export-html-inline-images
-	 (not descp)))
-   (org-file-image-p
-      filename org-export-html-inline-image-extensions))
+   (and (or (eq t org-export-html-inline-images)
+	    (and org-export-html-inline-images (not descp)))
+	(org-file-image-p
+	 filename org-export-html-inline-image-extensions)))
 
 ;;; org-html-make-link
 (defun org-html-make-link (opt-plist type path fragment desc attr