branch: externals-release/org
commit 2ee94bb065483a7a07641573daef10b2873e0920
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    Reapply "lisp/ox-html.el: Restore org-svg class."
    
    This reverts commit 895a367a67888b1ceaaae9fd95807553e46ab314.
---
 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 417527b5b2..d1687cf5a8 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1782,7 +1782,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