summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-03-15 13:31:13 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-03-15 13:31:13 (GMT)
commitd660979a0eef4457b861687a46b62c5dd31aec3f (patch)
treea2ebbec7b125ab952a43b76a520954e62e1506a5
parent4eba81e5f41273c400d67409c79b5881cd39237a (diff)
downloadorg-mode-d660979a0eef4457b861687a46b62c5dd31aec3f.zip
org-mode-d660979a0eef4457b861687a46b62c5dd31aec3f.tar.gz
ox-html.el (org-html-link): Fix handling of abbreviated links which include a file: protocol
* ox-html.el (org-html-link): Fix handling of abbreviated links which include a file: protocol. Before the patch, exporting this buffer does not export the link correctly: #+LINK: test file:my.file::%s [[test::search]]
-rw-r--r--lisp/ox-html.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 7c9927c..c7a9c55 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2518,7 +2518,8 @@ INFO is a plist holding contextual information. See
(org-element-property :path link) option)))
(and numbers (concat "#sec-"
(mapconcat 'number-to-string
- numbers "-")))))))))
+ numbers "-"))))))
+ (t raw-path))))
(t raw-path)))
attributes protocol)
;; Extract attributes from parent's paragraph. HACK: Only do this