* Bug ? : No indentation for the text in inline tasks
@ 2022-05-03 4:40 Nicolas Odermatt-Lemay
2022-05-04 10:17 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Odermatt-Lemay @ 2022-05-03 4:40 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 565 bytes --]
Greetings,
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.
I'm not sure if this is helpful, but I noticed that we have the right
indentation when using the code from org-inlinetask.el of this old
repository:
https://github.com/ngz/org-mode-lists/blob/master/lisp/org-inlinetask.el
Thanks for your work, org-mode is an amazing piece of software.
[-- Attachment #2: Type: text/html, Size: 841 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug ? : No indentation for the text in inline tasks
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>
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-05-04 10:17 UTC (permalink / raw)
To: Nicolas Odermatt-Lemay; +Cc: emacs-orgmode
Nicolas Odermatt-Lemay <nodermattlemay@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug ? : No indentation for the text in inline tasks
[not found] ` <CAC-BrWobrQWoTqSnqezp3qLWoPtPPYhkaTJ=LWLUzFP8SCd8DA@mail.gmail.com>
@ 2022-05-05 3:19 ` Ihor Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-05-05 3:19 UTC (permalink / raw)
To: Nicolas Odermatt-Lemay; +Cc: emacs-orgmode
[-- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-05 3:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).