scanner: don't print new line when no descriptions are provided
[profile/ivi/wayland.git] / src / scanner.c
index f88fb4d..699782f 100644 (file)
@@ -661,8 +661,9 @@ emit_structs(struct wl_list *message_list, struct interface *interface)
                if (mdesc) {
                        printf("\t * ");
                        desc_dump(mdesc->text, 8);
+                       printf("\n");
                }
-               printf("\n\t */\n");
+               printf("\t */\n");
                printf("\tvoid (*%s)(", m->name);
 
                n = strlen(m->name) + 17;