org-export: Fix inclusion of files with no final newline
authorNicolas Goaziou <n.goaziou@gmail.com>
Tue, 30 Oct 2012 12:53:28 +0000 (13:53 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Tue, 30 Oct 2012 12:53:28 +0000 (13:53 +0100)
* contrib/lisp/org-export.el (org-export--prepare-file-contents): File
  contents should end with a newline character.

contrib/lisp/org-export.el

index aaacc25..32312e9 100644 (file)
@@ -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))))
 
 \f
 ;;; Tools For Back-Ends