From 505fefbec73e37e1aae8a6fad315ee9d4bebde1c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 5 Apr 2012 22:28:21 +0200 Subject: [PATCH] cssprovider: Add an empty line when printing ... between the @define-color statements and the rules. --- gtk/gtkcssprovider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index a34c5ed1b3..0136414518 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -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); }