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

This commit is contained in:
Carsten Dominik 2010-01-01 14:27:07 +01:00
parent 70d6341f2e
commit 8f17ffae37
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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]]")))))))