From 613e78a951c81450270e2067be6bcf483915f0d5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 10 Dec 2010 21:03:50 +0100 Subject: [PATCH] Be more careful about consecuitve spaces in styles --- extensions/addons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.39.5