* lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch.

This commit is contained in:
Lars Ingebrigtsen 2017-10-19 00:36:44 +02:00
parent 32f2ab4bbd
commit 658853aebb

View file

@ -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) ";"))))