diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 782e053a1..392fe5449 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-01-08 Carsten Dominik + * 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. diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el index 3019a1a00..18587250d 100644 --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -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."