瀏覽代碼

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.
Eric Schulte 11 年之前
父節點
當前提交
6215960d99
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ob-tangle.el

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