[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 a9fe6df: Fix problem with emacs -nw / eww / svg
From: |
Lars Ingebrigtsen |
Subject: |
emacs-27 a9fe6df: Fix problem with emacs -nw / eww / svg |
Date: |
Tue, 24 Dec 2019 11:21:18 -0500 (EST) |
branch: emacs-27
commit a9fe6dfa90c780d9dcebae6312ab623ad7e5a2bd
Author: Robert Pluim <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix problem with emacs -nw / eww / svg
* lisp/net/shr.el (shr-parse-image-data): Don't bug out on
non-visual Emacs versions on SVG images (bug#38507).
---
lisp/net/shr.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 22d4cde..97f8bed 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1197,7 +1197,8 @@ Return a string with image data."
(libxml-parse-xml-region (point) (point-max)) 'utf-8)))
;; SVG images often do not have a specified foreground/background
;; color, so wrap them in styles.
- (when (eq content-type 'image/svg+xml)
+ (when (and (display-images-p)
+ (eq content-type 'image/svg+xml))
(setq data (svg--wrap-svg data)))
(list data content-type)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 a9fe6df: Fix problem with emacs -nw / eww / svg,
Lars Ingebrigtsen <=