From ad811f54377d3fc6f122352608c4039717b249f9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 30 Oct 2012 13:53:28 +0100 Subject: [PATCH] org-export: Fix inclusion of files with no final newline * contrib/lisp/org-export.el (org-export--prepare-file-contents): File contents should end with a newline character. --- contrib/lisp/org-export.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el index aaacc255b..32312e904 100644 --- a/contrib/lisp/org-export.el +++ b/contrib/lisp/org-export.el @@ -2906,7 +2906,7 @@ file should have." (org-map-entries (lambda () (if (< offset 0) (delete-char (abs offset)) (insert (make-string offset ?*))))))))))) - (buffer-string))) + (org-element-normalize-string (buffer-string)))) ;;; Tools For Back-Ends -- 2.11.4.GIT