From 6215960d99b47e2bb5141bcd97b229d9c90c4db2 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 20 Sep 2013 15:25:36 -0600 Subject: [PATCH] don't insert a padline at the top of the file * lisp/ob-tangle.el (org-babel-spec-to-string): Don't insert a padline at the top of the file, instead only insert padlines between blocks. --- lisp/ob-tangle.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 8141943ca..0e1614ae0 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -327,7 +327,7 @@ that the appropriate major-mode is set. SPEC has the form: (funcall insert-comment (org-fill-template org-babel-tangle-comment-format-beg link-data))) - (when padline (insert "\n")) + (when (and padline (not (= (point) (point-min)))) (insert "\n")) (insert (format "%s\n" -- 2.11.4.GIT