[Xfce4-commits] <midori:master> Be more careful about consecuitve spaces in styles

Christian Dywan noreply at xfce.org
Sun Dec 12 07:04:01 CET 2010


Updating branch refs/heads/master
         to 613e78a951c81450270e2067be6bcf483915f0d5 (commit)
       from 5b37de20751975683b2491b2df57e6c34a249598 (commit)

commit 613e78a951c81450270e2067be6bcf483915f0d5
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Dec 10 21:03:50 2010 +0100

    Be more careful about consecuitve spaces in styles

 extensions/addons.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 1ce47b4..8fcdee3 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 */



More information about the Xfce4-commits mailing list