Sure. I'm able to reproduce this by running emacs -Q and evaluating the
following:

(setf org-agenda-files '("~/org"))
(setf org-todo-keywords '((sequence "TODO(t!)" "NOW(n!)" "WAIT(w!)" "|" 
"DONE(d!)" "CANC(c!)")))
(setq org-blank-before-new-entry '((heading . nil)
                                  (plain-list-item . nil)))
(setq org-capture-templates
      '(("t" "todo" entry (file+olp+datetree "~/org/superbug.org")
         "* TODO %?\n%U\n%a"
         :time-prompt t)))

Then, I hit M-x and run org-capture, and select "t". Pick a date in the
future (or the past, so long as it's the first capture for that date),
and capture. This results in a datetree with a blank line in between the
date and the captured entry, for example:

*** 2025-05-22 Thursday

**** TODO test capture
[2025-05-22 Thu 00:00]
[[file:~/.config/emacs/test-org-blank-init.el]]

Let me know if you can reproduce, else this is some weird behavior specific
to my machine...
- critbase

Reply via email to