Fix 344868

This commit is contained in:
Matthias Clasen 2006-06-14 13:48:27 +00:00
parent fdc1c28a5e
commit 99998793d5
3 changed files with 14 additions and 0 deletions

View 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.

View 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.

View 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)