From 6a4bff121edff594b2e8a458fe0ae681ee23efbe Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 5 Oct 2009 22:01:45 -0400 Subject: Adding some more carriage returns. --- tools/dbusmenu-dumper.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c index 25b9047..9d0d420 100644 --- a/tools/dbusmenu-dumper.c +++ b/tools/dbusmenu-dumper.c @@ -43,12 +43,12 @@ print_menuitem (DbusmenuMenuitem * item, int depth) GList * children = dbusmenu_menuitem_get_children(item); if (children != NULL) { gchar * childspace = g_strnfill(depth + 4, ' '); - g_print("\n%s\"submenu\": [\n%s{", space, childspace); + g_print("\n%s\"submenu\": [\n%s{\n", space, childspace); GList * child; for (child = children; child != NULL; child = g_list_next(child)) { print_menuitem(DBUSMENU_MENUITEM(child->data), depth + 4 + 2); if (child->next != NULL) { - g_print("\n%s},\n%s{", childspace, childspace); + g_print("\n%s},\n%s{\n", childspace, childspace); } } g_print("\n%s}\n%s]", childspace, space); @@ -71,8 +71,9 @@ new_root_cb (DbusmenuClient * client, DbusmenuMenuitem * newroot) g_print("{\n"); print_menuitem(newroot, 2); - g_print("}\n"); + g_print("\n}\n"); + g_main_quit(mainloop); return; } -- cgit v1.2.3