org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit f1d77100d7208a0cb1f46d3d97e9ed179e0850e9
parent 07b98eb4f7252e3f64a306c09dfb618be6ac181d
Author: azzamsa <azzam@azzamsa.com>
Date:   Fri, 11 Jan 2019 18:15:26 +0700

org-download.el (org-download-yank): Add ability to trim newline

Fixes #89

Diffstat:
Morg-download.el | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-download.el b/org-download.el @@ -287,7 +287,8 @@ COMMAND is a format-style string with two slots for LINK and FILENAME." (defun org-download-yank () "Call `org-download-image' with current kill." (interactive) - (org-download-image (current-kill 0))) + (org-download-image + (replace-regexp-in-string "\n+$" "" (current-kill 0)))) (defun org-download-screenshot () "Capture screenshot and insert the resulting file.