diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-02-27 09:34:45 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-02-27 09:34:45 +0100 |
commit | dc68d28d67fb8cd48de317585dbddae9dd1470e8 (patch) | |
tree | ff50bd39dde35508059a520603f1e2c7c83afc8d | |
parent | a0047bcd477c5a5dacfe276d18ace7c5dc5fe2f3 (diff) | |
download | org-mode-dc68d28d67fb8cd48de317585dbddae9dd1470e8.tar.gz |
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 <tsd@tsdye.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/105356>
-rw-r--r-- | lisp/ox-latex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 121a675..49d8427 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" |