Browse Source

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>
Nicolas Goaziou 1 year ago
parent
commit
d6e20dbcff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
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)