forked from mirrors/org-mode
org-entities: Fix `org-entities-create-table'
* lisp/org-entities.el (org-entities-create-table): Function chokes when CAR of `org-entities' is a string.
This commit is contained in:
parent
af6cb0bd35
commit
a821be219a
|
@ -492,15 +492,11 @@ Kind can be any of `latex', `html', `ascii', `latin1', or `utf8'."
|
|||
;; Helpfunctions to create a table for orgmode.org/worg/org-symbols.org
|
||||
|
||||
(defun org-entities-create-table ()
|
||||
"Create an org-mode table with all entities."
|
||||
"Create an Org mode table with all entities."
|
||||
(interactive)
|
||||
(let ((ll org-entities)
|
||||
(pos (point))
|
||||
e latex mathp html latin utf8 name ascii)
|
||||
(let ((pos (point)) e latex mathp html latin utf8 name ascii)
|
||||
(insert "|Name|LaTeX code|LaTeX|HTML code |HTML|ASCII|Latin1|UTF-8\n|-\n")
|
||||
(while ll
|
||||
(when (listp e)
|
||||
(setq e (pop ll))
|
||||
(mapc (lambda (e) (when (listp e)
|
||||
(setq name (car e)
|
||||
latex (nth 1 e)
|
||||
mathp (nth 2 e)
|
||||
|
@ -520,6 +516,7 @@ Kind can be any of `latex', `html', `ascii', `latin1', or `utf8'."
|
|||
"|" (format "=%s=" html) "|" html
|
||||
"|" ascii "|" latin "|" utf8
|
||||
"|\n")))
|
||||
org-entities)
|
||||
(goto-char pos)
|
||||
(org-table-align)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue