aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorantirez <antirez>2005-02-27 10:26:05 +0000
committerantirez <antirez>2005-02-27 10:26:05 +0000
commita52c478f7d07b44a58ef88974a06de8f3e7ed0e2 (patch)
tree9dfb37c296e83c91059b4c9d8fb193c621e26ee9 /jim.c
parent5546d7ea558fd6c0ade4c2fbf541d42f2ab44a5a (diff)
downloadjimtcl-a52c478f7d07b44a58ef88974a06de8f3e7ed0e2.zip
jimtcl-a52c478f7d07b44a58ef88974a06de8f3e7ed0e2.tar.gz
jimtcl-a52c478f7d07b44a58ef88974a06de8f3e7ed0e2.tar.bz2
Fixed a bug in the parsing of <backslash><newline>. Now it's
rendered as a single space.
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jim.c b/jim.c
index 2826100..ffafabe 100644
--- a/jim.c
+++ b/jim.c
@@ -1334,6 +1334,7 @@ static int Jim_Escape(char *dest, char *s, int slen)
case 't': *p++ = 0x9; i++; break;
case 'v': *p++ = 0xb; i++; break;
case '\0': *p++ = '\\'; i++; break;
+ case '\n': *p++ = ' '; i++; break;
default:
if (s[i+1] == 'x') {
int val = 0;