ox-latex: Tiny refactoring

* lisp/ox-latex.el (org-latex--label): Tiny refactoring.
This commit is contained in:
Nicolas Goaziou 2015-04-19 15:42:39 +02:00
parent 88108f652f
commit 3d4a153105

View file

@ -1069,8 +1069,9 @@ Eventually, if FULL is non-nil, wrap label within \"\\label{}\"."
user-label
(org-export-get-reference datum info)))))
(cond ((not full) label)
(label (concat (format "\\label{%s}" label)
(and (not (eq type 'target)) "\n")))
(label (format "\\label{%s}%s"
label
(if (eq type 'target) "" "\n")))
(t ""))))
(defun org-latex--caption/label-string (element info)