Le 12/10/2021 à 13:51, Eric S Fraga a écrit :
> On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote:
>> More seriously, the best solution for me would be to allow saving a file
>> with a space just after ** without deleting this space... I do not know
>> which code provokes this deletion.
>
> Maybe have a look at your write-file-hooks and write-file-functions
> variables to see if there is some invocation that strips whitespace?
The file.el of which this function depends is to big and too complicated
for me.
>
> You may wish to use the whitespace package (for a little time) to see
> when a space at the end of headline disappears. The whitespace package
> is part of Emacs.
>
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250
> : Latest paper written in org: https://arxiv.org/abs/2106.05096
>
This problem was also described here:
https://emacs.stackexchange.com/questions/54970/preserving-the-space-immediately-after-an-org-heading-when-deleting-trailing-whi
But no solution was given.
All the best,
Jo.