From 1ec975f92577fe667167102287a2e342760994bb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 13 Oct 2019 09:23:50 +0200 Subject: [PATCH] ox-latex: Exclude newline from labels within captions * lisp/ox-latex.el (org-latex--caption/label-string): Exclude newline character from labels within captions. Reported-by: Godefroy --- 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 b5fa7278c..832d9bf8e 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1338,7 +1338,7 @@ For non-floats, see `org-latex--wrap-label'." (t (symbol-name type*))) "")) (if short (format "[%s]" (org-export-data short info)) "") - label + (org-trim label) (org-export-data main info)))))) (defun org-latex-guess-inputenc (header)