1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-25 02:32:27 -05:00

Whitespace fixup 24573c0

This commit is contained in:
TingPing 2014-08-26 21:44:47 -04:00
parent 24573c0171
commit a38f7ba910

View File

@ -188,30 +188,30 @@ unescape_newlines (const gchar *value)
while (*p) while (*p)
{ {
if (*p == '\\') if (*p == '\\')
{ {
p++; p++;
switch (*p) switch (*p)
{ {
case 'n': case 'n':
*q = '\n'; *q = '\n';
break; break;
case 'r': case 'r':
*q = '\r'; *q = '\r';
break; break;
case '\\': case '\\':
*q = '\\'; *q = '\\';
break; break;
case '\0': case '\0':
g_warning ("Escaped character at end of string."); g_warning ("Escaped character at end of string.");
break; break;
default: default:
*q++ = '\\'; *q++ = '\\';
*q = *p; *q = *p;
g_warning ("Invalid escape sequence."); g_warning ("Invalid escape sequence.");
break; break;
} }
} }
else else
{ {
*q = *p; *q = *p;