Fix 344868
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 14 Jun 2006 13:48:27 +0000 (13:48 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 14 Jun 2006 13:48:27 +0000 (13:48 +0000)
ChangeLog
ChangeLog.pre-2-12
glib/gkeyfile.c

index 4475597..27168c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-14  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gkeyfile.c (g_key_file_to_data): Separate groups by
+       an empty line  (#344868, Christian Persch)
+
 2006-06-14  Tor Lillqvist  <tml@novell.com>
 
        * glib/gutils.c (g_listenv): Add Windows notes to doc comment.
index 4475597..27168c5 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-14  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gkeyfile.c (g_key_file_to_data): Separate groups by
+       an empty line  (#344868, Christian Persch)
+
 2006-06-14  Tor Lillqvist  <tml@novell.com>
 
        * glib/gutils.c (g_listenv): Add Windows notes to doc comment.
index 0e3dddc..0f27df9 100644 (file)
@@ -943,6 +943,10 @@ g_key_file_to_data (GKeyFile  *key_file,
 
       group = (GKeyFileGroup *) group_node->data;
 
+      /* separate groups by an empty line */
+      if (group_node->next)
+        g_string_append_c (data_string, '\n');
+
       if (group->comment != NULL)
         g_string_append_printf (data_string, "%s\n", group->comment->value);
       if (group->name != NULL)