From: Lars Ingebrigtsen Date: Wed, 18 Oct 2017 22:36:44 +0000 (+0200) Subject: * lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch. X-Git-Tag: emacs-27.0.90~6240 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=658853aebb0ae2ee243276e04a7672fa7525ec5c;p=emacs.git * lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch. --- diff --git a/lisp/svg.el b/lisp/svg.el index 241385fa91f..42619ed3519 100644 --- a/lisp/svg.el +++ b/lisp/svg.el @@ -167,7 +167,7 @@ otherwise. IMAGE-TYPE should be a MIME image type, like (goto-char (point-min)) (while (not (eobp)) (let ((char (following-char))) - (if (<= char 128) + (if (< char 128) (forward-char 1) (delete-char 1) (insert "&#" (format "%d" char) ";"))))