* shr.el (shr-tag-img): Don't bug out on images that don't have a SRC.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 22 Oct 2010 14:58:40 +0000 (16:58 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 22 Oct 2010 14:58:40 +0000 (16:58 +0200)
lisp/ChangeLog
lisp/shr.el

index 79dca4a..020fbc6 100644 (file)
@@ -1,5 +1,7 @@
 2010-10-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * shr.el (shr-tag-img): Don't bug out on images that don't have a SRC.
+
        * gnus-group.el (gnus-group-mark-group): Use gnus-group-position-point
        instead of the summary one.
 
index a25fc2c..6646cec 100644 (file)
@@ -487,7 +487,8 @@ Return a string with image data."
   (browse-url-url-encode-chars url "[)$ ]"))
 
 (defun shr-tag-img (cont)
-  (when cont
+  (when (and cont
+            (cdr (assq :src cont)))
     (when (and (> (current-column) 0)
               (not (eq shr-state 'image)))
       (insert "\n"))