branch: externals-release/org
commit 0ea4dc166c7743156845bf4f38019ee02abad06a
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@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