diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-04-19 18:38:46 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-04-19 18:38:46 +0200 |
commit | 2a354295ce49a2053ff2cc89addf5112e6e9a184 (patch) | |
tree | 31a7691b47c8133ec51b21a8b4db8ab5c53fd635 /helm-utils.el | |
parent | a4bf9cd41b3f20ad94570f018e8d2f4ae09bd3e1 (diff) |
Spelling fixes.
Diffstat (limited to 'helm-utils.el')
-rw-r--r-- | helm-utils.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/helm-utils.el b/helm-utils.el index 4620ef12..e567f97a 100644 --- a/helm-utils.el +++ b/helm-utils.el @@ -777,14 +777,14 @@ If COUNT is non--nil add a number after each prompt." (forward-line))) (nreverse bookmarks-alist))) -(defun helm-html-entitie-to-string (entitie) - "Replace an html ENTITIE by its string value. -When unable to decode ENTITIE returns nil." - (helm-aif (assoc entitie helm-html-entities-alist) +(defun helm-html-entity-to-string (entity) + "Replace an html ENTITY by its string value. +When unable to decode ENTITY returns nil." + (helm-aif (assoc entity helm-html-entities-alist) (string (cdr it)) (save-match-data - (when (string-match "[0-9]+" entitie) - (string (string-to-number (match-string 0 entitie))))))) + (when (string-match "[0-9]+" entity) + (string (string-to-number (match-string 0 entity))))))) (defun helm-html-decode-entities-string (str) "Decode entities in the string STR." @@ -793,7 +793,7 @@ When unable to decode ENTITIE returns nil." (insert str) (goto-char (point-min)) (while (re-search-forward "&#?\\([^;]*\\);" nil t) - (helm-aif (helm-html-entitie-to-string (match-string 0)) + (helm-aif (helm-html-entity-to-string (match-string 0)) (replace-match it))) (buffer-string)))) |