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

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

[elpa] externals-release/org 0ea4dc166c 01/10: org-html-latex-environmen


From: ELPA Syncer
Subject: [elpa] externals-release/org 0ea4dc166c 01/10: org-html-latex-environment: Fix error when environment is non-math
Date: Mon, 3 Jun 2024 06:58:36 -0400 (EDT)

branch: externals-release/org
commit 0ea4dc166c7743156845bf4f38019ee02abad06a
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-html-latex-environment: Fix error when environment is non-math
    
    * lisp/ox-html.el (org-html-latex-environment): Do not try to compute
    caption for non-math environments.
---
 lisp/ox-html.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 3b3aad7485..6b515ef342 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -3154,6 +3154,7 @@ CONTENTS is nil.  INFO is a plist holding contextual 
information."
         (attributes (org-export-read-attribute :attr_html latex-environment))
         (label (org-html--reference latex-environment info t))
         (caption (and (org-html--latex-environment-numbered-p 
latex-environment)
+                      (org-html--math-environment-p latex-environment)
                      (number-to-string
                       (org-export-get-ordinal
                        latex-environment info nil



reply via email to

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