mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 20:41:23 +00:00
Fix display of inline SVG images in Rmail
* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Support Content-type of "svg+xml" if SVG images are supported,
This commit is contained in:
parent
4c55d04ebe
commit
4d87d203cf
1 changed files with 5 additions and 2 deletions
|
|
@ -842,8 +842,11 @@ directly."
|
|||
((string-match "text/" content-type)
|
||||
(setq type 'text))
|
||||
((string-match "image/\\(.*\\)" content-type)
|
||||
(setq type (image-supported-file-p
|
||||
(concat "." (match-string 1 content-type))))
|
||||
(let ((fnext (match-string 1 content-type)))
|
||||
;; Ask about SVG support when Content-type is image/svg+xml.
|
||||
(if (equal fnext "svg+xml")
|
||||
(setq fnext "svg"))
|
||||
(setq type (image-supported-file-p (concat "." fnext))))
|
||||
(when (and type
|
||||
rmail-mime-show-images
|
||||
(not (eq rmail-mime-show-images 'button))
|
||||
|
|
|
|||
Loading…
Reference in a new issue