mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 19:37:52 +00:00
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>
This commit is contained in:
parent
c0f423d434
commit
2f587d496f
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue