From 2f587d496ff94ff76254ef53255bb971fbe234ba Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 11 Mar 2018 19:21:29 +0100 Subject: [PATCH] org-capture: Prevent spurious blank line during capture * lisp/org-capture.el (org-capture-place-entry): Prevent spurious blank line during capture. Reported-by: Luke --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index d5ea06f0e..33e61fc15 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1121,7 +1121,7 @@ may have been stored before." (setq level (org-get-valid-level (if (org-at-heading-p) (org-outline-level) 1) 1)) - (if reversed? (outline-next-heading) (org-end-of-subtree t))) + (if reversed? (outline-next-heading) (org-end-of-subtree t t))) ;; Insert as a top-level entry at the beginning of the file. (reversed? (goto-char (point-min))