[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug ? : No indentation for the text in inline tasks
From: |
Ihor Radchenko |
Subject: |
Re: Bug ? : No indentation for the text in inline tasks |
Date: |
Thu, 05 May 2022 11:19:22 +0800 |
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:
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