diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-11-27 21:46:18 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-11-27 21:46:18 +0100 |
commit | d6e20dbcff3c9fd0870d5550fb8c06750b95c4c3 (patch) | |
tree | 43ea44f02fb0fc1691972acc92134193846893ec | |
parent | cd60a35fe1088ac9d42e324968df04d36b7f0668 (diff) | |
download | org-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.el | 2 |
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) |