mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
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).
This commit is contained in:
parent
0de63092c8
commit
a9fe6dfa90
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user