ASCII export: swallow {} after entity macro

* lisp/org-ascii.el (org-ascii-replace-entities): Match an optional {}
after an entity.
This commit is contained in:
Carsten Dominik 2010-10-15 09:39:42 +02:00
parent 935c310402
commit f66f0430d8
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ publishing directory."
(defun org-ascii-replace-entities ()
"Replace entities with the ASCII representation."
(let (e)
(while (re-search-forward "\\\\\\([a-zA-Z]+[0-9]*\\)" nil t)
(while (re-search-forward "\\\\\\([a-zA-Z]+[0-9]*\\)\\({}\\)?" nil t)
(org-if-unprotected-at (match-beginning 1)
(setq e (org-entity-get-representation (match-string 1)
org-export-ascii-entities))