Merge pull request #131 from abeaumont/import-separator

Use separator defined by config instead of hardcoding the default.
This commit is contained in:
Javier Olaechea 2017-03-29 15:12:51 -05:00 committed by GitHub
commit dee99e91b5

View file

@ -46,12 +46,12 @@
:if-does-not-exist :create :if-does-not-exist :create
:external-format :utf-8) :external-format :utf-8)
;; TODO: What other data/metadata should we write out? ;; TODO: What other data/metadata should we write out?
(format out ";;;;;~%") (format out "~A~%" (separator *config*))
(format out "title: ~A~%" title) (format out "title: ~A~%" title)
(format out "tags: ~A~%" (format nil "~{~A~^, ~}" tags)) (format out "tags: ~A~%" (format nil "~{~A~^, ~}" tags))
(format out "date: ~A~%" date) (format out "date: ~A~%" date)
(format out "format: html~%") ; post format: html, md, rst, etc (format out "format: html~%") ; post format: html, md, rst, etc
(format out ";;;;;~%") (format out "~A~%" (separator *config*))
(format out "~A~%" (regex-replace-all (string #\Newline) content "<br>")))) (format out "~A~%" (regex-replace-all (string #\Newline) content "<br>"))))
(defun import-posts (filepath output &optional since) (defun import-posts (filepath output &optional since)