1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-26 07:33:39 +00:00

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.
This commit is contained in:
Eric Schulte 2013-09-20 15:25:36 -06:00
parent 136bdc0e83
commit 6215960d99

View File

@ -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"