瀏覽代碼

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.
Nicolas Goaziou 12 年之前
父節點
當前提交
359891f811
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lisp/org-export.el

+ 1 - 1
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.