From 9719604b7902ca7129d98d11fa658f169ad63b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 10 Nov 2019 03:00:37 +0100 Subject: [PATCH] extensions-tool: Separate create metadata when prompting When using the create command's --interactive option, we prompt for any metadata that wasn't passed on the command line. As every prompt is preceded by a short multi-line description, it is hard to follow when everything is lumped together. Improve legibility by separating all prompts by newlines. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/812 --- subprojects/extensions-tool/src/command-create.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/extensions-tool/src/command-create.c b/subprojects/extensions-tool/src/command-create.c index 2ee1369f6..25fcc5ba0 100644 --- a/subprojects/extensions-tool/src/command-create.c +++ b/subprojects/extensions-tool/src/command-create.c @@ -202,6 +202,8 @@ prompt_metadata (char **uuid, char **name, char **description) line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL); } *name = g_strdelimit (line, "\n", '\0'); + + g_print ("\n"); } if (description != NULL && *description == NULL) @@ -220,6 +222,8 @@ prompt_metadata (char **uuid, char **name, char **description) line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL); } *description = g_strdelimit (line, "\n", '\0'); + + g_print ("\n"); } if (uuid != NULL && *uuid == NULL) @@ -237,6 +241,8 @@ prompt_metadata (char **uuid, char **name, char **description) line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL); } *uuid = g_strdelimit (line, "\n", '\0'); + + g_print ("\n"); } }