From: Christian Dywan Date: Fri, 10 Dec 2010 20:03:50 +0000 (+0100) Subject: Be more careful about consecuitve spaces in styles X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613e78a951c81450270e2067be6bcf483915f0d5;p=midori Be more careful about consecuitve spaces in styles --- diff --git a/extensions/addons.c b/extensions/addons.c index 1ce47b43..8fcdee3c 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -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 */