From ba4852ec74ea8159ac91a0bbc88469e7617b4963 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 8 Jan 2014 22:47:10 +0100 Subject: [PATCH] ox-md: Prevent error with empty items * lisp/ox-md.el (org-md-item): Do not return an error when exporting an empty item. --- lisp/ox-md.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 50982add5..c77a4bcf0 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -244,7 +244,8 @@ a communication channel." (off "[ ] ")) (let ((tag (org-element-property :tag item))) (and tag (format "**%s:** "(org-export-data tag info)))) - (org-trim (replace-regexp-in-string "^" " " contents))))) + (and contents + (org-trim (replace-regexp-in-string "^" " " contents)))))) ;;;; Line Break