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
1 changed files with 1 additions and 0 deletions

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)) (attributes (org-export-read-attribute :attr_html latex-environment))
(label (org-html--reference latex-environment info t)) (label (org-html--reference latex-environment info t))
(caption (and (org-html--latex-environment-numbered-p latex-environment) (caption (and (org-html--latex-environment-numbered-p latex-environment)
(org-html--math-environment-p latex-environment)
(number-to-string (number-to-string
(org-export-get-ordinal (org-export-get-ordinal
latex-environment info nil latex-environment info nil