diff options
| -rw-r--r-- | lisp/net/shr.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 22d4cde34a7..97f8bed88c1 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -1197,7 +1197,8 @@ Return a string with image data." | |||
| 1197 | (libxml-parse-xml-region (point) (point-max)) 'utf-8))) | 1197 | (libxml-parse-xml-region (point) (point-max)) 'utf-8))) |
| 1198 | ;; SVG images often do not have a specified foreground/background | 1198 | ;; SVG images often do not have a specified foreground/background |
| 1199 | ;; color, so wrap them in styles. | 1199 | ;; color, so wrap them in styles. |
| 1200 | (when (eq content-type 'image/svg+xml) | 1200 | (when (and (display-images-p) |
| 1201 | (eq content-type 'image/svg+xml)) | ||
| 1201 | (setq data (svg--wrap-svg data))) | 1202 | (setq data (svg--wrap-svg data))) |
| 1202 | (list data content-type))) | 1203 | (list data content-type))) |
| 1203 | 1204 | ||