Eat blank spaces after quote symbol before on requoting
authorJosé Dapena Paz <jdapena@igalia.com>
Thu, 11 Feb 2010 11:58:27 +0000 (12:58 +0100)
committerJosé Dapena Paz <jdapena@igalia.com>
Thu, 11 Feb 2010 12:08:29 +0000 (13:08 +0100)
Fixes NB#148667

src/modest-text-utils.c

index ae759ea..cc02fb5 100644 (file)
@@ -883,9 +883,11 @@ unquote_line (GString * l, const gchar *quote_symbol)
        quote_len = strlen (quote_symbol);
        while (p[0]) {
                if (g_str_has_prefix (p, quote_symbol)) {
-                       if (p[quote_len] == ' ') {
-                               p += quote_len;
+                       p+=quote_len;
+                       while (p[0] && p[0] == ' ') {
+                               p++;
                        }
+                       continue;
                } else {
                        break;
                }