Browse Source

org-e-latex: Fix bug when exporting empty items

* contrib/lisp/org-e-latex.el (org-e-latex-item): Fix bug when
  exporting empty items.
Nicolas Goaziou 12 năm trước cách đây
mục cha
commit
cd9ce4b914
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      contrib/lisp/org-e-latex.el

+ 1 - 1
contrib/lisp/org-e-latex.el

@@ -1590,7 +1590,7 @@ contextual information."
 				 (concat checkbox
 				 (concat checkbox
 					 (org-export-data tag info)))))))
 					 (org-export-data tag info)))))))
     (concat counter "\\item" (or tag (concat " " checkbox))
     (concat counter "\\item" (or tag (concat " " checkbox))
-	    (org-trim contents)
+	    (and contents (org-trim contents))
 	    ;; If there are footnotes references in tag, be sure to
 	    ;; If there are footnotes references in tag, be sure to
 	    ;; add their definition at the end of the item.  This
 	    ;; add their definition at the end of the item.  This
 	    ;; workaround is necessary since "\footnote{}" command is
 	    ;; workaround is necessary since "\footnote{}" command is