emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org 9364b2d 35/85: lisp/ox-html.el: Restore org-svg cla


From: ELPA Syncer
Subject: [elpa] externals/org 9364b2d 35/85: lisp/ox-html.el: Restore org-svg class.
Date: Mon, 27 Sep 2021 15:57:45 -0400 (EDT)

branch: externals/org
commit 9364b2d89465773e3a1855be76358c315e2e003b
Author: Tom Gillespie <tgbugs@gmail.com>
Commit: Bastien <bzg@gnu.org>

    lisp/ox-html.el: Restore org-svg class.
    
    * lisp/ox-html.el (org-html--format-image): Restore org-svg class.
    d96e8975791bd3b1a5f8fdb75609d73f134dc831 removed the org-svg class
    which is necessary even when using <img> tags otherwise svg images
    will render at absurdly large sizes.
---
 lisp/ox-html.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 7fb8fec..54905a7 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1707,7 +1707,9 @@ a communication channel."
                     (org-html-encode-plain-text
                      (org-find-text-property-in-string 'org-latex-src source))
                   (file-name-nondirectory source)))
-     attributes))
+     (if (string= "svg" (file-name-extension source))
+         (org-combine-plists '(:class "org-svg") attributes '(:fallback nil))
+       attributes)))
    info))
 
 (defun org-html--textarea-block (element)



reply via email to

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