ox-md: Prevent error with empty items

* lisp/ox-md.el (org-md-item): Do not return an error when exporting
  an empty item.
This commit is contained in:
Nicolas Goaziou 2014-01-08 22:47:10 +01:00
parent 884faddd57
commit ba4852ec74
1 changed files with 2 additions and 1 deletions

View File

@ -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