Re: Bug ? : No indentation for the text in inline tasks

2022-05-04 Thread Ihor Radchenko
Nicolas Odermatt-Lemay  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 
AuthorDate: Fri Aug 21 14:44:26 2015 +0200
Commit: Nicolas Goaziou 
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


Re: Bug ? : No indentation for the text in inline tasks

2022-05-04 Thread Ihor Radchenko
Nicolas Odermatt-Lemay  writes:

> Step to reproduce:
> 1- Enable (org-indent-mode) in an org buffer.
> 2- Use the command (org-inlinetask-insert-task)
> 3- Insert some text between the task's title and the keyword END
> 4- Notice that the text between the title and the keyword END isn't
> properly indented.

Could you elaborate what you mean by "isn't properly indented"?
It is supposed to be indented just like any other text in the containing
headline.

Best,
Ihor