summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-08-22 16:55:18 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2012-08-22 16:55:18 +0200
commitcd9ce4b9141366b9c2364a96d26b1ec3da6a3c61 (patch)
treedd00df38e629d8cf2d6d79b2872a691022c72d7b
parentd1f36ea3137d5c769e590d802a660589218d3929 (diff)
downloadorg-mode-cd9ce4b9141366b9c2364a96d26b1ec3da6a3c61.tar.gz
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.
-rw-r--r--contrib/lisp/org-e-latex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el
index 6c9ea0c..8dd2d92 100644
--- a/contrib/lisp/org-e-latex.el
+++ b/contrib/lisp/org-e-latex.el
@@ -1590,7 +1590,7 @@ contextual information."
(concat checkbox
(org-export-data tag info)))))))
(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
;; add their definition at the end of the item. This
;; workaround is necessary since "\footnote{}" command is