aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-19 16:07:58 +0200
committerLars Ingebrigtsen2019-09-19 16:07:58 +0200
commit7156b0efc714eaaab5bcf42138752f698e57b5ad (patch)
treede44cef3b74b5386efcd216c68b86e5add863367
parent2d8c8950b921e6fa97c04f72253d4c5349b2d5d4 (diff)
downloademacs-7156b0efc714eaaab5bcf42138752f698e57b5ad.tar.gz
emacs-7156b0efc714eaaab5bcf42138752f698e57b5ad.zip
Minor svg wrap tweak
* lisp/net/shr.el (svg--wrap-svg): Add the size to the wrapper to avoid having the SVG images shrink (bug#37159).
-rw-r--r--lisp/net/shr.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index d8a01cbbc1b..cd5aa3980a3 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1192,7 +1192,7 @@ Return a string with image data."
1192 (with-temp-buffer 1192 (with-temp-buffer
1193 (insert 1193 (insert
1194 (format 1194 (format
1195 "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xi=\"http://www.w3.org/2001/XInclude\" style=\"color: %s;\" viewBox=\"0 0 %d %d\"> <xi:include href=\"data:image/svg+xml;base64,%s \"></xi:include></svg>" 1195 "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xi=\"http://www.w3.org/2001/XInclude\" style=\"color: %s;\" viewBox=\"0 0 %d %d\"> <xi:include href=\"data:image/svg+xml;base64,%s\"></xi:include></svg>"
1196 (face-foreground 'default) 1196 (face-foreground 'default)
1197 (car size) (cdr size) 1197 (car size) (cdr size)
1198 (base64-encode-string data t))) 1198 (base64-encode-string data t)))