From: Ihor Radchenko <yantar92@gmail.com>
To: Nicolas Odermatt-Lemay <nodermattlemay@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug ? : No indentation for the text in inline tasks
Date: Thu, 05 May 2022 11:19:22 +0800 [thread overview]
Message-ID: <87y1zghdj9.fsf@localhost> (raw)
In-Reply-To: <CAC-BrWobrQWoTqSnqezp3qLWoPtPPYhkaTJ=LWLUzFP8SCd8DA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
Nicolas Odermatt-Lemay <nodermattlemay@gmail.com> writes:
> I say it isn't properly indented in the case of inline tasks because the
> text belonging to the inline task (not the header itself) isn't aligned
> with the first character of the header (see example below)
>
> * Header Level 1
> The text belonging to level-1 header
>
> *************** Inline Task
> Text belonging to inline task
> *************** END
>
> This is what I would be expecting, but maybe this is not the desired
> behavior, in which case I am wrong to think it is a bug:
>
> * Header Level 1
> The text belonging to level-1 header
>
> *************** Inline Task
> Text belonging to inline task
> *************** END
Indentation of text inside inlinetasks is intentionally the same with
the parent task. Inlinetasks are not considered headings. Rather a
special kind of paragraph.
For many years, Org is deliberately indenting text inside inlinetasks as
in the screenshot:
[-- Attachment #2: 2022-05-05_11-14.png --]
[-- Type: image/png, Size: 20594 bytes --]
[-- Attachment #3: Type: text/plain, Size: 675 bytes --]
I say deliberate because there is a commit introducing exactly this
behaviour:
56cd178caebd061c992d4c7c682d0e4dc2c40f26
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Aug 21 14:44:26 2015 +0200
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>
CommitDate: Fri Aug 21 14:44:26 2015 +0200
org-indent: Fix indentation in inline tasks
* lisp/org-indent.el (org-indent-add-properties): Indent inline tasks'
contents according to current outline level, not inlinetask's. This
is consistent with hard indentation, using `org-indent-line'.
If others think that this default should be changed, they are free to
jump into the discussion.
Best,
Ihor
prev parent reply other threads:[~2022-05-05 3:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-03 4:40 Bug ? : No indentation for the text in inline tasks Nicolas Odermatt-Lemay
2022-05-04 10:17 ` Ihor Radchenko
[not found] ` <CAC-BrWobrQWoTqSnqezp3qLWoPtPPYhkaTJ=LWLUzFP8SCd8DA@mail.gmail.com>
2022-05-05 3:19 ` Ihor Radchenko [this message]
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=87y1zghdj9.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nodermattlemay@gmail.com \
/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).