Browse Source

ox-html: Use unescaped URL in links without description

* lisp/ox-html.el (org-html-link): Use unescaped URL in links without
  description.

Reported-by: Arun Isaac <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108359>
Nicolas Goaziou 8 years ago
parent
commit
3548c4bead
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/ox-html.el

+ 4 - 1
lisp/ox-html.el

@@ -3055,7 +3055,10 @@ INFO is a plist holding contextual information.  See
 			      desc))
      ;; External link without a description part.
      (path (let ((path (org-html-encode-plain-text path)))
-	     (format "<a href=\"%s\"%s>%s</a>" path attributes path)))
+	     (format "<a href=\"%s\"%s>%s</a>"
+		     path
+		     attributes
+		     (org-link-unescape path))))
      ;; No path, only description.  Try to do something useful.
      (t (format "<i>%s</i>" desc)))))