From d8563787489ffa890e1d5de181348d67937cafe3 Mon Sep 17 00:00:00 2001 From: Jake Romer Date: Thu, 4 Aug 2016 14:15:52 -0400 Subject: [PATCH] Trim whitespace when there are no footnotes --- ox-gfm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-gfm.el b/ox-gfm.el index 28c41f1..4bbac41 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -254,7 +254,7 @@ holding export options." (headlines (and depth (org-export-collect-headlines info depth))) (toc-string (or (mapconcat 'org-gfm-format-toc headlines "\n") "")) (toc-tail (if headlines "\n\n" ""))) - (concat toc-string toc-tail contents "\n" (org-html-footnote-section info)))) + (org-trim (concat toc-string toc-tail contents "\n" (org-html-footnote-section info)))))