emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7156b0e: Minor svg wrap tweak


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 7156b0e: Minor svg wrap tweak
Date: Thu, 19 Sep 2019 10:08:19 -0400 (EDT)

branch: master
commit 7156b0efc714eaaab5bcf42138752f698e57b5ad
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 lisp/net/shr.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index d8a01cb..cd5aa39 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1192,7 +1192,7 @@ Return a string with image data."
     (with-temp-buffer
       (insert
        (format
-        "<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>"
+        "<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>"
         (face-foreground 'default)
         (car size) (cdr size)
         (base64-encode-string data t)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]