1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

* net/shr.el (shr-tag-img): Don't bug out on <img src=""> data.

This commit is contained in:
Lars Magne Ingebrigtsen 2013-12-07 02:44:15 +01:00
parent 0494d994cd
commit e330b64699
2 changed files with 6 additions and 1 deletions

View 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):

View 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"))