浏览代码

Fix cross-references from %-encoded links in publishing

* lisp/ox-publish.el (org-publish-resolve-external-link): Decode
  search string.

Reported-by: Martin Hans <martinhansdk@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00328.html>
Nicolas Goaziou 7 年之前
父节点
当前提交
1b1966a144
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ox-publish.el

+ 2 - 1
lisp/ox-publish.el

@@ -1154,7 +1154,8 @@ references with `org-export-get-reference'."
     (let* ((filename (file-truename file))
 	   (crossrefs
 	    (org-publish-cache-get-file-property filename :crossrefs nil t))
-	   (cells (org-export-string-to-search-cell search)))
+	   (cells
+	    (org-export-string-to-search-cell (org-link-unescape search))))
       (or
        ;; Look for reference associated to search cells triggered by
        ;; LINK.  It can match when targeted file has been published