Explorar o código

Fix bug with LaTeX entities

Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
76979e62bd
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lisp/org.el

+ 4 - 1
lisp/org.el

@@ -4417,7 +4417,10 @@ This is needed for font-lock setup.")
 			    (regexp-opt
 			     (append (mapcar 'car org-html-entities)
 				     (if (boundp 'org-latex-entities)
-					 org-latex-entities nil))
+					 (mapcar (lambda (x)
+						   (or (car-safe x) x))
+						 org-latex-entities)
+				       nil))
 			     'words))) ; FIXME
 	    ))
     ;;			(list "\\\\\\(?:[a-zA-Z]+\\)")))