Browse Source

ox-md: Prevent error with empty items

* lisp/ox-md.el (org-md-item): Do not return an error when exporting
  an empty item.
Nicolas Goaziou 11 years ago
parent
commit
ba4852ec74
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-md.el

+ 2 - 1
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