]> git.eshelyaron.com Git - emacs.git/commitdiff
(print) <Lisp_String>: Fix "\ " handling.
authorKarl Heuer <kwzh@gnu.org>
Sun, 12 Apr 1998 06:49:26 +0000 (06:49 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 12 Apr 1998 06:49:26 +0000 (06:49 +0000)
src/print.c

index 443b2f03a303454f89901f03b9272b8fb4638f42..30e9ff74af144f525e914ea42e8dc14669ff0807 100644 (file)
@@ -1218,11 +1218,14 @@ print (obj, printcharfun, escapeflag)
                  /* If we just had a hex escape, and this character
                     could be taken as part of it,
                     output `\ ' to prevent that.  */
-                 if (need_nonhex
-                     && ((c >= 'a' && c <= 'f')
+                 if (need_nonhex)
+                   {
+                     need_nonhex = 0;
+                     if ((c >= 'a' && c <= 'f')
                          || (c >= 'A' && c <= 'F')
-                         || (c >= '0' && c <= '9')))
-                   strout ("\\ ", -1, -1, printcharfun, 0);
+                         || (c >= '0' && c <= '9'))
+                       strout ("\\ ", -1, -1, printcharfun, 0);
+                   }
 
                  if (c == '\"' || c == '\\')
                    PRINTCHAR ('\\');