summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-11-07 23:36:41 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-11-07 23:36:41 (GMT)
commit359891f811e89b194fe6e6cd9c75c7948e517d4d (patch)
tree3961b20638f67c9b90603749d4d83f5490c11d30
parentc149e04ade80f077379ecaaaa845f1ffae6f1448 (diff)
downloadorg-mode-359891f811e89b194fe6e6cd9c75c7948e517d4d.zip
org-mode-359891f811e89b194fe6e6cd9c75c7948e517d4d.tar.gz
org-export: Consider colons as a safe character for targets
* contrib/lisp/org-export.el (org-export-solidify-link-text): Consider colons as a safe character for targets.
-rw-r--r--contrib/lisp/org-export.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el
index 0d7dbf7..fd67707 100644
--- a/contrib/lisp/org-export.el
+++ b/contrib/lisp/org-export.el
@@ -3349,7 +3349,7 @@ INFO is a plist used as a communication channel."
(defun org-export-solidify-link-text (s)
"Take link text S and make a safe target out of it."
(save-match-data
- (mapconcat 'identity (org-split-string s "[^a-zA-Z0-9_.-]+") "-")))
+ (mapconcat 'identity (org-split-string s "[^a-zA-Z0-9_.-:]+") "-")))
(defun org-export-get-coderef-format (path desc)
"Return format string for code reference link.