Merge branch 'bugfix'

This commit is contained in:
Ihor Radchenko 2022-12-08 14:38:47 +03:00
commit 697aa627ac
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 7 additions and 7 deletions

View File

@ -2131,13 +2131,13 @@ information."
(let ((environment (or (org-export-read-attribute
:attr_latex example-block :environment)
"verbatim")))
(org-latex--wrap-label
example-block
(format "\\begin{%s}\n%s\\end{%s}"
environment
(org-export-format-code-default example-block info)
environment)
info))))
(format "\\begin{%s}%s\n%s\\end{%s}"
environment
(if (org-element-property :name example-block)
(org-latex--label example-block info nil 'full)
"")
(org-export-format-code-default example-block info)
environment))))
;;;; Export Block