mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +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:
parent
8b6df19dc7
commit
34a8133715
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user