Browse Source

ox-latex: Tiny refactoring

* lisp/ox-latex.el (org-latex--label): Tiny refactoring.
Nicolas Goaziou 10 years ago
parent
commit
3d4a153105
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/ox-latex.el

+ 3 - 2
lisp/ox-latex.el

@@ -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)
-			 (and (not (eq type 'target)) "\n")))
+	  (label (format "\\label{%s}%s"
+			 label
+			 (if (eq type 'target) "" "\n")))
 	  (t ""))))
 	  (t ""))))
 
 
 (defun org-latex--caption/label-string (element info)
 (defun org-latex--caption/label-string (element info)