1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-03 20:24:29 +00:00

Make shr not bug out on images on non-graphical displays

* lisp/net/shr.el (shr-put-image): Don't bug out on alt-less
images on non-graphical displays (bug#22327).
This commit is contained in:
Lars Ingebrigtsen 2016-02-04 16:44:06 +11:00
parent 3311f4080b
commit af6ab7efc7

View File

@ -966,7 +966,7 @@ element is the data blob and the second element is the content-type."
(image-animated-p image))))
(image-animate image nil 60)))
image)
(insert alt)))
(insert (or alt ""))))
(defun shr-rescale-image (data &optional content-type)
"Rescale DATA, if too big, to fit the current buffer."