forked from mirrors/org-mode
ox-latex: Tiny refactoring
* lisp/ox-latex.el (org-latex--label): Tiny refactoring.
This commit is contained in:
parent
88108f652f
commit
3d4a153105
|
@ -1069,8 +1069,9 @@ Eventually, if FULL is non-nil, wrap label within \"\\label{}\"."
|
||||||
user-label
|
user-label
|
||||||
(org-export-get-reference datum info)))))
|
(org-export-get-reference datum info)))))
|
||||||
(cond ((not full) label)
|
(cond ((not full) label)
|
||||||
(label (concat (format "\\label{%s}" label)
|
(label (format "\\label{%s}%s"
|
||||||
(and (not (eq type 'target)) "\n")))
|
label
|
||||||
|
(if (eq type 'target) "" "\n")))
|
||||||
(t ""))))
|
(t ""))))
|
||||||
|
|
||||||
(defun org-latex--caption/label-string (element info)
|
(defun org-latex--caption/label-string (element info)
|
||||||
|
|
Loading…
Reference in a new issue