mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-21 06:55:35 +00:00
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>
This commit is contained in:
parent
8ab1e30dbc
commit
e266fac1ed
@ -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) ""))
|
||||
|
Loading…
Reference in New Issue
Block a user