Browse Source

LaTeX export: Fix regular expression error, problem with case-fold-search

Carsten Dominik 15 years ago
parent
commit
33d28f47bf
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-latex.el

+ 2 - 0
lisp/ChangeLog

@@ -1,5 +1,7 @@
 2009-11-12  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-latex.el (org-latex-entities-regexp): Fix typo in regexp.
+
 	* org.el (org-block-todo-from-children-or-siblings-or-parent)
 	(org-block-todo-from-checkboxes): Do not block changes to a nil
 	TODO state.

+ 1 - 1
lisp/org-latex.el

@@ -2046,7 +2046,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
       (when (consp x)
 	(add-to-list 'org-latex-entities-exceptions x)
 	(setq x (car x)))
-      (if (string-match "[a-z][A-Z]$" x)
+      (if (string-match "[a-zA-Z]$" x)
 	  (push x names)
 	(push x rest)))
     (concat "\\(" (regexp-opt (nreverse names)) "\\>\\)"