Browse Source

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.
Nicolas Goaziou 12 years ago
parent
commit
ad811f5437
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-export.el

+ 1 - 1
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