Procházet zdrojové kódy

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 před 7 roky
rodič
revize
1b1966a144
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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