Whitespace fixup 24573c0

This commit is contained in:
TingPing 2014-08-26 21:44:47 -04:00
parent 24573c0171
commit a38f7ba910
1 changed files with 18 additions and 18 deletions

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;