diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-11-26 10:49:28 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-11-26 10:49:28 +0100 |
commit | 26c2ad99cfc2c7776ea58aa2fbb60fbd872f2372 (patch) | |
tree | bb89e03a9fdd665a6d93eaeca0a832557c9053ee | |
parent | b0ab7008df2b9c8fe0cdffc93644983bc26b477b (diff) | |
download | org-mode-26c2ad99cfc2c7776ea58aa2fbb60fbd872f2372.tar.gz |
ox-publish: Fix resolving url-encoded external links
* lisp/ox-publish.el (org-publish-resolve-external-link): Handle
url-encoded links. Do not ask to create a new headline if none is
found.
-rw-r--r-- | lisp/ox-publish.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 8c87806..a54b71b 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -1150,7 +1150,8 @@ references with `org-export-get-reference'." (substring search 1) (with-current-buffer (find-file-noselect file) (org-with-point-at 1 - (org-link-search search nil t) + (let ((org-link-search-must-match-exact-headline t)) + (org-link-search (org-link-unescape search) nil t)) (and (org-at-heading-p) (org-string-nw-p (org-entry-get (point) "CUSTOM_ID")))))))) ((not org-publish-cache) |