1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-29 07:58:21 +00:00

Protect target-like text in verbatim snippets during ASCII export

This commit is contained in:
Carsten Dominik 2010-01-08 09:37:00 +01:00
parent f9eb4ee98c
commit be8d644680
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2010-01-08 Carsten Dominik <carsten.dominik@gmail.com>
* org-ascii.el (org-export-ascii-preprocess): Protect targets in
verbatim code for ASCII export.
* org.el (org-update-statistics-cookies): Also see checkboxes in
ordered lists.

View File

@ -494,7 +494,8 @@ publishing directory."
;; Remove target markers
(goto-char (point-min))
(while (re-search-forward "<<<?\\([^<>]*\\)>>>?\\([ \t]*\\)" nil t)
(replace-match "\\1\\2")))
(org-if-unprotected-at (match-beginning 1)
(replace-match "\\1\\2"))))
(defun org-html-expand-for-ascii (line)
"Handle quoted HTML for ASCII export."