emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kris Nelson <kris@kristofernelson.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: LOGBOOK drawer now being created with blank line afterwards
Date: Tue, 14 May 2024 14:56:21 -0600 (MDT)	[thread overview]
Message-ID: <766237934.317726.1715720181047@office.mailbox.org> (raw)

Hi,

I've noticed after upgrading to the latest Org version (9.6.30), when the LOGBOOK drawer is automatically generated during a TODO state change it inserts a blank line after the end of the drawer. This did not occur on the Org version I was using previously (9.5.5).

I'm not sure if this is an intended change or a bug. If it is intended, would there be a way to disable that behaviour (org-blank-before-new-entry does not seem to apply here)?

To clarify, given the following sample org file:
====================
-*- mode: org; org-log-into-drawer: t -*-

#+SEQ_TODO: TODO(t!) | DONE(d!)

* With Org 9.5.5
** Example project
*** Action 1
*** Action 2

* With Org 9.6.30
** Example project
*** Action 1
*** Action 2
====================

I get the following results when toggling the TODO state on the "Example project" heading with org-todo:
====================
* With Org 9.5.5
** TODO Example project
:LOGBOOK:
- State "TODO"       from              [2024-05-14 Tue 12:24]
:END:
*** Action 1
*** Action 2

* With Org 9.6.30
** TODO Example project
:LOGBOOK:
- State "TODO"       from              [2024-05-14 Tue 12:38]
:END:

*** Action 1
*** Action 2
====================

I'm currently reviewing the org source to try and see where the new line is coming from in the process flow, but I'm a bit of a novice in regards to elisp, so I haven't figured that out yet.

I also tried searching the mailing list archive, but didn't see anything related.

Thanks,
Kris


             reply	other threads:[~2024-05-14 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 20:56 Kris Nelson [this message]
2024-05-15  8:38 ` LOGBOOK drawer now being created with blank line afterwards Rens Oliemans
2024-05-16  7:48   ` Kris Nelson
2024-05-16  7:53     ` Ihor Radchenko
2024-05-17 11:22 ` Ihor Radchenko
2024-05-18 18:44   ` Kris Nelson
2024-05-19 11:48     ` Ihor Radchenko

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=766237934.317726.1715720181047@office.mailbox.org \
    --to=kris@kristofernelson.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).