diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-04-30 15:50:25 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-04-30 15:50:25 +0200 |
commit | e266fac1edb9efab4d7b31c682ff857faff57179 (patch) | |
tree | 8f41a17a1814bef7ab9d47f8e6349adf96a81318 | |
parent | 8ab1e30dbca544980475801afee29a7a5e31b41d (diff) | |
download | org-mode-e266fac1edb9efab4d7b31c682ff857faff57179.tar.gz |
ox-texinfo: Property display images with relative file names
* lisp/ox-texinfo.el (org-texinfo--inline-image): Make sure to remove
leading "./" from file name.
Reported-by: Ramesh Nedunchezian <rameshnedunchezian@outlook.com>
<http://lists.gnu.org/r/emacs-orgmode/2021-04/msg00873.html>
-rw-r--r-- | lisp/ox-texinfo.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index b9c3f1d..3463544 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -1126,7 +1126,9 @@ current state of the export, as a plist." (path (org-element-property :path link)) (filename (file-name-sans-extension - (if (file-name-absolute-p path) (expand-file-name path) path))) + (if (file-name-absolute-p path) + (expand-file-name path) + (file-relative-name path)))) (extension (file-name-extension path)) (attributes (org-export-read-attribute :attr_texinfo parent)) (height (or (plist-get attributes :height) "")) |