Browse Source

Fix export bug with radio links matching inside <<target>>

Carsten Dominik 15 years ago
parent
commit
8f17ffae37
2 changed files with 5 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-exp.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2010-01-01  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-exp.el (org-export-mark-radio-links): Don't match inside
+	<<target>>.
+
 	* org.el (org-format-latex-header-extra): New variable.
 	(org-format-latex): Set org-format-latex-header-extra from
 	in-buffer stuff.

+ 2 - 1
lisp/org-exp.el

@@ -1902,7 +1902,8 @@ When it is nil, all comments will be removed."
 	(unless
 	    (save-match-data
 	      (or (org-in-regexp org-bracket-link-regexp)
-		  (org-in-regexp org-plain-link-re)))
+		  (org-in-regexp org-plain-link-re)
+		  (org-in-regexp "<<[^<>]+>>")))
 	  (org-if-unprotected
 	   (replace-match "\\1[[\\2]]")))))))