Browse Source

Fix bug with LaTeX entities

Carsten Dominik 16 năm trước cách đây
mục cha
commit
76979e62bd
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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]+\\)")))