1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-02 08:22:16 +00:00

Revert "* org-html.el: Bugfix: prevent infinite matching of the `&' character."

This reverts commit f6752c805e.
This commit is contained in:
Bastien Guerry 2011-03-11 18:37:22 +01:00
parent f6752c805e
commit ed8a9616a2

View File

@ -2184,9 +2184,7 @@ Possible conversions are set in `org-export-html-protect-char-alist'."
(let ((cl org-export-html-protect-char-alist) c)
(while (setq c (pop cl))
(let ((start 0))
(while (and (string-match (car c) s start)
;; prevent infinite matching of &
(not (string-match "&" s start)))
(while (string-match (car c) s start)
(setq s (replace-match (cdr c) t t s)
start (match-beginning 0)))))
s))