summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Shoulson <mark@kli.org>2012-05-23 20:17:40 -0400
committerNicolas Goaziou <n.goaziou@gmail.com>2012-05-25 16:50:06 +0200
commitbde1b2f94293f902a4d26dc8446655fe8c8e163f (patch)
tree3be685e365d4cbace826759b2dfc1033ea82bf82
parent610a00ce2a4e3dc34004a1d3f5adffea031a2017 (diff)
downloadorg-mode-bde1b2f94293f902a4d26dc8446655fe8c8e163f.tar.gz
Fix for displaying entities ending in a number
* lisp/org.el (org-fontify-entities): Fix bug: The entities \sup[123] and \there4 were not "prettified" when org-pretty-entities was enabled. TINYCHANGE
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index a2e5387..3d15e72 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5966,7 +5966,7 @@ needs to be inserted at a specific position in the font-lock sequence.")
(when org-pretty-entities
(catch 'match
(while (re-search-forward
- "\\\\\\(frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)"
+ "\\\\\\(there4\\|sup[123]\\|frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)"
limit t)
(if (and (not (org-in-indented-comment-line))
(setq ee (org-entity-get (match-string 1)))