org-e-html.el: Handle clickable images correctly
authorJambunathan K <kjambunathan@gmail.com>
Wed, 7 Nov 2012 18:13:43 +0000 (23:13 +0530)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 9 Nov 2012 01:03:51 +0000 (02:03 +0100)
Fix bug http://permalink.gmane.org/gmane.emacs.orgmode/62197.

contrib/lisp/org-e-html.el

index 9afe4a8..5232951 100644 (file)
@@ -2109,8 +2109,7 @@ standalone images, do the following.
                                 element org-e-html-inline-image-rules)
                                (org-export-get-parent element)))
                     (t nil))))
-    (when paragraph
-      (assert (eq (org-element-type paragraph) 'paragraph))
+    (when (eq (org-element-type paragraph) 'paragraph)
       (when (or (not (and (boundp 'org-e-html-standalone-image-predicate)
                          (functionp org-e-html-standalone-image-predicate)))
                (funcall org-e-html-standalone-image-predicate paragraph))