From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dominik Schrempf Subject: Org-capture, empty lines and date tree Date: Fri, 06 Apr 2018 14:40:02 +0200 Message-ID: <87r2ns8q59.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4Qf1-0007VE-UV for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 08:40:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4Qey-0006zP-Sa for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 08:40:07 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:42232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4Qey-0006z6-ME for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 08:40:04 -0400 Received: by mail-wr0-x231.google.com with SMTP id s18so1636520wrg.9 for ; Fri, 06 Apr 2018 05:40:04 -0700 (PDT) Received: from localhost (wifi-ext-0088.univ-lyon1.fr. [134.214.214.89]) by smtp.gmail.com with ESMTPSA id u44sm15109219wrb.67.2018.04.06.05.40.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Apr 2018 05:40:02 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode Hi, I am using date trees with org-capture with the =:empty-lines n= directive. The list item of =org-capture-templates= looks similar to this one: #+BEGIN_EXAMPLE (list "j" "Journal" 'entry (list 'file+olp+datetree journal-file) "* %^{Entry}\n%?\n" :empty-lines 1) #+END_EXAMPLE Now, whenever a new day is inserted, for instance today, : *** 2018-04-06 Friday There is no empty line before that line but between this line and the actual headline of the captured entry. So the complete captured entry looks like this: : Some text in the file that was already present before the Org capture process. : Bla. : *** 2018-04-06 Friday : : **** TODO The newly captured entry : Some text. However, I think it should rather look like this: : Some text in the file that was already present before the Org capture process. : Bla. : : *** 2018-04-06 Friday : (OPTIONAL EMPTY LINE HERE) : **** TODO The newly captured entry : Some text. Only, if I enter another entry, the line should be left empty, like : Some text in the file that was already present before the Org capture process. : Bla. : : *** 2018-04-06 Friday : (OPTIONAL EMPTY LINE HERE) : **** TODO The newly captured entry : Some text. : (MANDATORY EMPTY LINE HERE) : **** TODO The new newly captured entry : Bla bla bla. Please let me know what you think. Dominik