0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-17 09:36:26 +00:00

Export: Ignore radio matches in links

This commit is contained in:
Carsten Dominik 2009-07-19 08:35:31 +02:00
parent 82dcd80130
commit 741b523fa5
2 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,7 @@
* org-exp.el (org-export-format-source-code-or-example): Fix bug
that did not enumerate first line.
(org-export-mark-radio-links): Skip matches in links.
2009-07-18 Carsten Dominik <carsten.dominik@gmail.com>

View file

@ -1792,8 +1792,12 @@ When it is nil, all comments will be removed."
(goto-char (point-min))
(when re-radio
(while (re-search-forward re-radio nil t)
(org-if-unprotected
(replace-match "\\1[[\\2]]"))))))
(unless
(save-match-data
(or (org-in-regexp org-bracket-link-regexp)
(org-in-regexp org-plain-link-re)))
(org-if-unprotected
(replace-match "\\1[[\\2]]")))))))
(defun org-export-remove-special-table-lines ()
"Remove tables lines that are used for internal purposes."