diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-01-08 22:47:10 +0100 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-01-08 22:47:10 +0100 |
commit | ba4852ec74ea8159ac91a0bbc88469e7617b4963 (patch) | |
tree | 241a17ad38c837e00c1ad79c1c8f21277dc7f6d3 | |
parent | 884faddd575d9615efa867c68a62e56788ade5ec (diff) | |
download | org-mode-ba4852ec74ea8159ac91a0bbc88469e7617b4963.tar.gz |
ox-md: Prevent error with empty items
* lisp/ox-md.el (org-md-item): Do not return an error when exporting
an empty item.
-rw-r--r-- | lisp/ox-md.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 50982ad..c77a4bc 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 |