Ensure headlines converted from items end in correct number of blank lines

This commit is contained in:
Daniel Borchmann 2025-06-17 08:52:18 +02:00
parent 45af82410a
commit 1832e9615c
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

View File

@ -455,7 +455,14 @@ Via %%(with-temp-buffer (db/org-add-link-to-current-clock) (string-trim (buffer-
(org-capture-set-target-location) (org-capture-set-target-location)
(org-capture-place-template) (org-capture-place-template)
(indent-region (point-min) (point-max))))) (indent-region (point-min) (point-max))
;; Ensure that two line breaks are placed at the end of the heading
(goto-char (point-max))
(while (looking-back "\n" 1)
(delete-char -1))
(insert "\n\n"))))
;;; Refiling ;;; Refiling