emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 658853a: * lisp/svg.el (svg--encode-text): Fix off-


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 658853a: * lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch.
Date: Wed, 18 Oct 2017 18:36:52 -0400 (EDT)

branch: master
commit 658853aebb0ae2ee243276e04a7672fa7525ec5c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    * lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch.
---
 lisp/svg.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/svg.el b/lisp/svg.el
index 241385f..42619ed 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) ";"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]