summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-10-15 09:39:42 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-10-15 09:39:42 +0200
commitf66f0430d8e883b7feb825a3151dea7c107299c1 (patch)
tree6dc31c06328573813b534c9b9e7f2bd1f730686a
parent935c310402349136876c84afacbfc66b75f03d09 (diff)
downloadorg-mode-f66f0430d8e883b7feb825a3151dea7c107299c1.tar.gz
ASCII export: swallow {} after entity macro
* lisp/org-ascii.el (org-ascii-replace-entities): Match an optional {} after an entity.
-rw-r--r--lisp/org-ascii.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el
index 25e9d27..9f3fa16 100644
--- a/lisp/org-ascii.el
+++ b/lisp/org-ascii.el
@@ -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))