Merge pull request #2761 from myshevchuk/dnd-org-image-width

dragndrop: insert #+attr_org: :width if specified
This commit is contained in:
Henrik Lissner 2020-03-27 01:27:15 -04:00 committed by GitHub
commit 4c8f1ee50f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,8 @@ an file icon produced by `+org-attach-icon-for')."
(format "#+attr_html: :width %dpx\n" org-download-image-html-width))
(if (= org-download-image-latex-width 0) ""
(format "#+attr_latex: :width %dcm\n" org-download-image-latex-width))
(if (= org-download-image-org-width 0) ""
(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))