Be more careful about consecuitve spaces in styles

This commit is contained in:
Christian Dywan 2010-12-10 21:03:50 +01:00
parent 5b37de2075
commit 613e78a951

View 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 */