Hello Bastien, > Thanks for the patch. I tried it and these two tests fail: > > FAILED test-org-datetree/find-date-create > FAILED test-org-datetree/find-iso-week-create > > Perhaps you can check the value of `org-blank-before-new-entry' and > insert a blank line only if needed? I've looked at the tests and concluded that your proposed approach is better and updated the patch accordingly. Vasilij