emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dominik Schrempf <dominik.schrempf@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Org-capture, empty lines and date tree
Date: Fri, 06 Apr 2018 14:40:02 +0200	[thread overview]
Message-ID: <87r2ns8q59.fsf@gmail.com> (raw)

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

                 reply	other threads:[~2018-04-06 12:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2ns8q59.fsf@gmail.com \
    --to=dominik.schrempf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).