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)
{
if (*p == '\\')
{
p++;
{
p++;
switch (*p)
{
case 'n':
*q = '\n';
switch (*p)
{
case 'n':
*q = '\n';
break;
case 'r':
*q = '\r';
break;
case '\\':
*q = '\\';
break;
case '\0':
case 'r':
*q = '\r';
break;
case '\\':
*q = '\\';
break;
case '\0':
g_warning ("Escaped character at end of string.");
break;
default:
break;
default:
*q++ = '\\';
*q = *p;
g_warning ("Invalid escape sequence.");
break;
}
}
break;
}
}
else
{
*q = *p;