Trim whitespace when there are no footnotes

This commit is contained in:
Jake Romer 2016-08-04 14:15:52 -04:00 committed by GitHub
parent a3226de627
commit d856378748

View File

@ -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)))))