Rens Oliemans <[email protected]> writes: > Hmm, this is not exactly right. It seems that if a link is followed by a space > (or tab) character, (org-element-property :end link) will be after that > character. Consider this org file: > > --- start --- > [[https://github.com/wallyqs/org-ruby]] . > [[https://github.com/wallyqs/org-ruby]]. > ... > is this intentional or am I misunderstanding the properties? While not a big > deal, it does makes the code a bit more complicated since I have to keep track > of whether the link contains a trailing space or not.
Yes, it is intentional. Blanks after each object, including links, is considered a part of that object. The number of blanks is stored in :post-blank property. Rather than having a special code for each link type, you may instead consider altering the link object itself, followed by org-element-interpret-data. -- 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>
