From dc68d28d67fb8cd48de317585dbddae9dd1470e8 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 27 Feb 2016 09:34:45 +0100 Subject: [PATCH] ox-latex: Remove spurious newline in labels * lisp/ox-latex.el (org-latex--caption/label-string): Remove spurious newline in labels. Reported-by: Thomas S. Dye --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 121a67583..49d842747 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1222,7 +1222,7 @@ For non-floats, see `org-latex--wrap-label'." ((org-string-nw-p caption-from-attr-latex) (concat caption-from-attr-latex "\n")) ((and (not main) (equal label "")) "") - ((not main) (concat label "\n")) + ((not main) label) ;; Option caption format with short name. (t (format (if nonfloat "\\captionof{%s}%s{%s%s}\n"