diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-03-11 19:21:29 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-03-11 19:21:29 +0100 |
commit | 2f587d496ff94ff76254ef53255bb971fbe234ba (patch) | |
tree | 2b9f9f0e04b13c9bd95c90b92346f0a082b1805a | |
parent | c0f423d434f3aa1e7444ee566a340bed0b8160d8 (diff) | |
download | org-mode-2f587d496ff94ff76254ef53255bb971fbe234ba.tar.gz |
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 <mideniko1234-org@yahoo.co.uk>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00075.html>
-rw-r--r-- | lisp/org-capture.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index d5ea06f..33e61fc 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)) |