Merge pull request #2721 from jsravn/fix-org-download-screenshot

Fix inserted filename for org-download-screenshot
This commit is contained in:
Henrik Lissner 2020-03-27 01:58:38 -04:00 committed by GitHub
commit 90ec41c994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ an file icon produced by `+org-attach-icon-for')."
(format "#+attr_org: :width %dpx\n" org-download-image-org-width))
(format org-download-link-format
(cond ((file-in-directory-p filename org-attach-directory)
(file-relative-name filename org-download-image-dir))
(file-relative-name filename org-attach-directory))
((file-in-directory-p filename org-directory)
(file-relative-name filename org-directory))
(filename)))))