From d6e20dbcff3c9fd0870d5550fb8c06750b95c4c3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 27 Nov 2018 21:46:18 +0100 Subject: [PATCH] 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 --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index ebb2b6e11..d4ceac925 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)