summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2013-09-20 21:25:36 (GMT)
committer Eric Schulte <schulte.eric@gmail.com>2013-09-20 21:25:36 (GMT)
commit6215960d99b47e2bb5141bcd97b229d9c90c4db2 (patch)
treea47b4c3cf9cadce35f8df623ea867d40c2a55121
parent136bdc0e83358fa3f6af1d8b3b0cd71cace61efe (diff)
downloadorg-mode-6215960d99b47e2bb5141bcd97b229d9c90c4db2.zip
org-mode-6215960d99b47e2bb5141bcd97b229d9c90c4db2.tar.gz
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.
-rw-r--r--lisp/ob-tangle.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 8141943..0e1614a 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"