From 3c4c2132834e5229302c8c5d8e45017e4e78dffd Mon Sep 17 00:00:00 2001 From: Scott Wang Date: Wed, 23 Mar 2016 21:03:36 +0800 Subject: [PATCH] Fix missing whitespaces in exported paragraphs. --- ox-gfm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-gfm.el b/ox-gfm.el index 78e18ac..c33269f 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -74,7 +74,7 @@ CONTENTS is the paragraph contents. INFO is a plist used as a communication channel." (let ((contents - (concat (replace-regexp-in-string "\\\n" "" contents nil t) + (concat (mapconcat 'identity (split-string contents) " ") "\n"))) (let ((first-object (car (org-element-contents paragraph)))) ;; If paragraph starts with a #, protect it.