diff options
| author | Lars Ingebrigtsen | 2019-10-19 10:23:19 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-19 10:23:19 +0200 |
| commit | e4a4aa3057e4ab50ba690fbea3a06e578f62722b (patch) | |
| tree | 75c175ba5348a939cd5c964ca36b70e439bfef43 | |
| parent | c506e45c616f95f8710a38a69eb8ef8a41e50d26 (diff) | |
| download | emacs-e4a4aa3057e4ab50ba690fbea3a06e578f62722b.tar.gz emacs-e4a4aa3057e4ab50ba690fbea3a06e578f62722b.zip | |
Don't have shr bug out if svg support isn't available
* lisp/net/shr.el (shr-put-image): Don't bug out if SVG support
isn't available.
| -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 f3d5de9fb67..93408840ab6 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -1075,7 +1075,8 @@ element is the data blob and the second element is the content-type." | |||
| 1075 | (create-image data nil t :ascent 100 | 1075 | (create-image data nil t :ascent 100 |
| 1076 | :format content-type)) | 1076 | :format content-type)) |
| 1077 | ((eq content-type 'image/svg+xml) | 1077 | ((eq content-type 'image/svg+xml) |
| 1078 | (create-image data 'svg t :ascent 100)) | 1078 | (when (image-type-available-p 'svg) |
| 1079 | (create-image data 'svg t :ascent 100))) | ||
| 1079 | ((eq size 'full) | 1080 | ((eq size 'full) |
| 1080 | (ignore-errors | 1081 | (ignore-errors |
| 1081 | (shr-rescale-image data content-type | 1082 | (shr-rescale-image data content-type |