summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 21:46:18 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-11-27 21:46:18 +0100
commitd6e20dbcff3c9fd0870d5550fb8c06750b95c4c3 (patch)
tree43ea44f02fb0fc1691972acc92134193846893ec
parentcd60a35fe1088ac9d42e324968df04d36b7f0668 (diff)
downloadorg-mode-d6e20dbcff3c9fd0870d5550fb8c06750b95c4c3.tar.gz
ox-latex: Gracefully handle export of source blocks without lang
* lisp/ox-latex.el (org-latex-src-block): Handle export of source blocks without language. Reported-by: John Ciolfi <ciolfi@mathworks.com> <http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00321.html>
-rw-r--r--lisp/ox-latex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index ebb2b6e..d4ceac9 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2892,7 +2892,7 @@ contextual information."
(listings (plist-get info :latex-listings)))
(cond
;; Case 1. No source fontification.
- ((not listings)
+ ((or (not lang) (not listings))
(let* ((caption-str (org-latex--caption/label-string src-block info))
(float-env
(cond ((string= "multicolumn" float)