diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/print.c b/src/print.c index 443b2f03a30..30e9ff74af1 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1218,11 +1218,14 @@ print (obj, printcharfun, escapeflag) | |||
| 1218 | /* If we just had a hex escape, and this character | 1218 | /* If we just had a hex escape, and this character |
| 1219 | could be taken as part of it, | 1219 | could be taken as part of it, |
| 1220 | output `\ ' to prevent that. */ | 1220 | output `\ ' to prevent that. */ |
| 1221 | if (need_nonhex | 1221 | if (need_nonhex) |
| 1222 | && ((c >= 'a' && c <= 'f') | 1222 | { |
| 1223 | need_nonhex = 0; | ||
| 1224 | if ((c >= 'a' && c <= 'f') | ||
| 1223 | || (c >= 'A' && c <= 'F') | 1225 | || (c >= 'A' && c <= 'F') |
| 1224 | || (c >= '0' && c <= '9'))) | 1226 | || (c >= '0' && c <= '9')) |
| 1225 | strout ("\\ ", -1, -1, printcharfun, 0); | 1227 | strout ("\\ ", -1, -1, printcharfun, 0); |
| 1228 | } | ||
| 1226 | 1229 | ||
| 1227 | if (c == '\"' || c == '\\') | 1230 | if (c == '\"' || c == '\\') |
| 1228 | PRINTCHAR ('\\'); | 1231 | PRINTCHAR ('\\'); |