[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 af6ab7e 2/3: Make shr not bug out on images on no
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 af6ab7e 2/3: Make shr not bug out on images on non-graphical displays |
Date: |
Thu, 04 Feb 2016 05:50:00 +0000 |
branch: emacs-25
commit af6ab7efc7a6ce83a289e05792498fa9354e6a32
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 611f0a9..bfda654 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."