Url-decode file path when working with shell commands
This commit is contained in:
parent
c501dd9283
commit
be212c74d8
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ ox-html.el :)"
|
||||||
(file-name-absolute-p raw-path))
|
(file-name-absolute-p raw-path))
|
||||||
(setq raw-path (concat (file-name-as-directory home) raw-path)))
|
(setq raw-path (concat (file-name-as-directory home) raw-path)))
|
||||||
(message "Storing media file to Anki for %s..." raw-path)
|
(message "Storing media file to Anki for %s..." raw-path)
|
||||||
(anki-editor--anki-connect-store-media-file (expand-file-name raw-path))))
|
(anki-editor--anki-connect-store-media-file (expand-file-name (url-unhex-string raw-path)))))
|
||||||
(t raw-path)))
|
(t raw-path)))
|
||||||
;; Extract attributes from parent's paragraph. HACK: Only do
|
;; Extract attributes from parent's paragraph. HACK: Only do
|
||||||
;; this for the first link in parent (inner image link for
|
;; this for the first link in parent (inner image link for
|
||||||
|
|
Loading…
Reference in a new issue