0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00

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

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