浏览代码

Merge branch 'master' into next

Nicolas Goaziou 6 年之前
父节点
当前提交
61396763ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)))
 	   (listings (plist-get info :latex-listings)))
       (cond
       (cond
        ;; Case 1.  No source fontification.
        ;; Case 1.  No source fontification.
-       ((not listings)
+       ((or (not lang) (not listings))
 	(let* ((caption-str (org-latex--caption/label-string src-block info))
 	(let* ((caption-str (org-latex--caption/label-string src-block info))
 	       (float-env
 	       (float-env
 		(cond ((string= "multicolumn" float)
 		(cond ((string= "multicolumn" float)