Commit 99998793 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix 344868

parent fdc1c28a
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> 2006-06-14 Tor Lillqvist <tml@novell.com>
* glib/gutils.c (g_listenv): Add Windows notes to doc comment. * glib/gutils.c (g_listenv): Add Windows notes to doc comment.
......
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> 2006-06-14 Tor Lillqvist <tml@novell.com>
* glib/gutils.c (g_listenv): Add Windows notes to doc comment. * glib/gutils.c (g_listenv): Add Windows notes to doc comment.
......
...@@ -943,6 +943,10 @@ g_key_file_to_data (GKeyFile *key_file, ...@@ -943,6 +943,10 @@ g_key_file_to_data (GKeyFile *key_file,
group = (GKeyFileGroup *) group_node->data; 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) if (group->comment != NULL)
g_string_append_printf (data_string, "%s\n", group->comment->value); g_string_append_printf (data_string, "%s\n", group->comment->value);
if (group->name != NULL) if (group->name != NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment