mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 02:32:27 -05:00
Whitespace fixup 24573c0
This commit is contained in:
parent
24573c0171
commit
a38f7ba910
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user