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>
This commit is contained in:
Nicolas Goaziou 2018-11-27 21:46:18 +01:00
parent cd60a35fe1
commit d6e20dbcff
1 changed files with 1 additions and 1 deletions

View File

@ -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)