From af6ab7efc7a6ce83a289e05792498fa9354e6a32 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 4 Feb 2016 16:44:06 +1100 Subject: [PATCH] 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). --- lisp/net/shr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 611f0a90f69..bfda6543b68 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -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." -- 2.39.5