cssprovider: Add an empty line when printing

... between the @define-color statements and the rules.
This commit is contained in:
Benjamin Otte 2012-04-05 22:28:21 +02:00
parent 51da8cb263
commit 505fefbec7

View File

@ -2934,7 +2934,7 @@ gtk_css_provider_to_string (GtkCssProvider *provider)
for (i = 0; i < priv->rulesets->len; i++)
{
if (i > 0)
if (str->len != 0)
g_string_append (str, "\n");
gtk_css_ruleset_print (&g_array_index (priv->rulesets, GtkCssRuleset, i), str);
}