* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 7 Dec 2013 01:44:15 +0000 (02:44 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 7 Dec 2013 01:44:15 +0000 (02:44 +0100)
lisp/ChangeLog
lisp/net/shr.el

index 4bad667..5cac769 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/shr.el (shr-tag-img): Don't bug out on <img src="">
+       data.
+
 2013-12-06  Michael Albinus  <michael.albinus@gmx.de>
 
        * progmodes/compile.el (compilation-start):
index 5857517..4c256f8 100644 (file)
@@ -1173,7 +1173,7 @@ The preference is a float determined from `shr-prefer-media-type'."
 (defun shr-tag-img (cont &optional url)
   (when (or url
            (and cont
-                (cdr (assq :src cont))))
+                (> (length (cdr (assq :src cont))) 0)))
     (when (and (> (current-column) 0)
               (not (eq shr-state 'image)))
       (insert "\n"))