]> spindle.queued.net Git - midori/commitdiff
Be more careful about consecuitve spaces in styles
authorChristian Dywan <christian@twotoasts.de>
Fri, 10 Dec 2010 20:03:50 +0000 (21:03 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 11 Dec 2010 23:36:32 +0000 (00:36 +0100)
extensions/addons.c

index 1ce47b43f42a69c145a4d151d6dd76b11e2319ed..8fcdee3c62e218c6c3a1072c688f0a6a0bd9ff51 100644 (file)
@@ -1135,7 +1135,8 @@ addons_get_element_content (gchar*     file_path,
                 }
 
                 /* Skip consecutive spaces */
-                if (file_content[i] == ' ' && file_content[i - 1] == ' ')
+                if (file_content[i] == ' '
+                 && i > 0 && file_content[i - 1] == ' ')
                     continue;
 
                 /* Append actual data to string */