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:
parent
f737e7213d
commit
0ea4dc166c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue