diff --git a/src/log.c b/src/log.c index 49a3844fff..f6326457a2 100644 --- a/src/log.c +++ b/src/log.c @@ -75,10 +75,10 @@ void geany_debug(gchar const *format, ...) static void handler_print(const gchar *msg) { - printf("%s\n", msg); + printf("%s", msg); if (G_LIKELY(log_buffer != NULL)) { - g_string_append_printf(log_buffer, "%s\n", msg); + g_string_append_printf(log_buffer, "%s", msg); update_dialog(); } } @@ -86,10 +86,10 @@ static void handler_print(const gchar *msg) static void handler_printerr(const gchar *msg) { - fprintf(stderr, "%s\n", msg); + fprintf(stderr, "%s", msg); if (G_LIKELY(log_buffer != NULL)) { - g_string_append_printf(log_buffer, "%s\n", msg); + g_string_append_printf(log_buffer, "%s", msg); update_dialog(); } } diff --git a/src/pluginutils.c b/src/pluginutils.c index cf02cdf35d..1ce455365f 100644 --- a/src/pluginutils.c +++ b/src/pluginutils.c @@ -723,7 +723,7 @@ void plugin_set_document_data(struct GeanyPlugin *plugin, struct GeanyDocument * * void on_document_save(GObject *unused, GeanyDocument *doc, GeanyPlugin *plugin) * { * const gchar *some_data = plugin_get_document_data(plugin, doc, "my-data"); - * g_print("my-data: %s", some_data); + * g_print("my-data: %s\n", some_data); * } * * gboolean plugin_init(GeanyPlugin *plugin, gpointer unused) diff --git a/src/tagmanager/tm_workspace.c b/src/tagmanager/tm_workspace.c index 6b2ef82f3b..3cfbc1b5c8 100644 --- a/src/tagmanager/tm_workspace.c +++ b/src/tagmanager/tm_workspace.c @@ -549,7 +549,7 @@ static gchar *pre_process_file(const gchar *cmd, const gchar *inf) g_file_get_contents(tmp_errfile, &errors, NULL, NULL); if (errors && *errors) - g_printerr("%s", errors); + g_printerr("%s\n", errors); g_free(errors); g_unlink(tmp_errfile); g_free(tmp_errfile); diff --git a/src/utils.c b/src/utils.c index 28349e5902..76474008d5 100644 --- a/src/utils.c +++ b/src/utils.c @@ -2377,13 +2377,13 @@ void utils_start_new_geany_instance(const gchar *doc_path) if (!utils_spawn_async(NULL, (gchar**) argv, NULL, 0, NULL, NULL, NULL, &err)) { - g_printerr("Unable to open new window: %s", err->message); + g_printerr("Unable to open new window: %s\n", err->message); g_error_free(err); } g_free(exec_path); } else - g_printerr("Unable to find 'geany'"); + g_printerr("Unable to find 'geany'\n"); }