1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

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.
This commit is contained in:
Ihor Radchenko 2024-06-01 14:47:43 +02:00
parent f737e7213d
commit 0ea4dc166c
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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