l...@phdk.org writes: > Thanks for the comments, I've attached the updated patch. > >> 1. Use `insert' rather than `insert-char' that is for interactive use. >> 2. Use more readable ?\t notation > > I realized that just inserting the spaces actually did mess up things > in some edge-cases so I changed approach. It feels ugly having almost > the exact same bit of code within a couple lines, but I don't see an > obvious solution.
Applied, onto main. Fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4750b37809 May you elaborate on the edge cases you encountered? It may be a good idea to add such cases to the tests as well. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>