emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-capture, empty lines and date tree
@ 2018-04-06 12:40 Dominik Schrempf
  0 siblings, 0 replies; only message in thread
From: Dominik Schrempf @ 2018-04-06 12:40 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-06 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 12:40 Org-capture, empty lines and date tree Dominik Schrempf

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).