0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 21:32:53 +00:00

Revert "lisp/ox-latex.el: put labels inside example blocks"

This reverts commit 304f18cb72.

This patch will break verbatim environment as the label will be
interpreted verbatim as well.
This commit is contained in:
Ihor Radchenko 2022-12-08 15:44:58 +03:00
parent 8b6df19dc7
commit 34a8133715
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -2131,13 +2131,13 @@ information."
(let ((environment (or (org-export-read-attribute
:attr_latex example-block :environment)
"verbatim")))
(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))))
(org-latex--wrap-label
example-block
(format "\\begin{%s}\n%s\\end{%s}"
environment
(org-export-format-code-default example-block info)
environment)
info))))
;;;; Export Block