I have defined an org-link
as follows:
(org-link-set-parameters my-link
:follow (lambda (path) (message "This my link"))
:export (lambda (path desc backend) "") ; I need to remove the space before the link.
)
In my case, this type of a link is always preceded by a space which should not appear in the exported file. How can I cause the character immediately preceding the link to be deleted during export?
For example, when exporting the following:
Some text my-link:path more text.
if the link is simply replaced by an empty string two spaces would result in the output. I want to avoid the extra space.