Sfoglia il codice sorgente

org-e-html.el: Handle clickable images correctly

Fix bug http://permalink.gmane.org/gmane.emacs.orgmode/62197.
Jambunathan K 12 anni fa
parent
commit
0125685553
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      contrib/lisp/org-e-html.el

+ 1 - 2
contrib/lisp/org-e-html.el

@@ -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))