浏览代码

org-exp.el (org-export-normalize-links): Don't match links within tags

* org-exp.el (org-export-normalize-links): Don't match links
within tags.

A headline with tags like :info:test: would not be exported correctly
because info:test is first matched and normalized as a link.
Bastien Guerry 12 年之前
父节点
当前提交
80cb1b0a09
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/org-exp.el

+ 2 - 1
lisp/org-exp.el

@@ -2113,7 +2113,8 @@ Also, store forced alignment information found in such lines."
       (put-text-property (match-beginning 0) (match-end 0) 'org-normalized-link t))
     (goto-char (point-min))
     (while (re-search-forward re-plain-link nil t)
-      (unless (get-text-property (match-beginning 0) 'org-normalized-link)
+      (unless (or (get-text-property (match-beginning 0) 'org-normalized-link)
+		  (assoc :tags (org-context)))
 	(goto-char (1- (match-end 0)))
 	(org-if-unprotected-at (1+ (match-beginning 0))
 	  (let* ((s (concat (match-string 1)