[geany/geany] ad4cca: g_print handler: Don't add newline

Nick Treleaven git-noreply at xxxxx
Sat Oct 5 10:55:55 UTC 2019


Branch:      refs/heads/master
Author:      Nick Treleaven <n at trelsoft.com>
Committer:   Nick Treleaven <n at trelsoft.com>
Date:        Sat, 05 Oct 2019 10:55:55 UTC
Commit:      ad4cca60774eed24413347f5f6f667ea4b12c5c9
             https://github.com/geany/geany/commit/ad4cca60774eed24413347f5f6f667ea4b12c5c9

Log Message:
-----------
g_print handler: Don't add newline


Modified Paths:
--------------
    src/log.c
    src/pluginutils.c

Modified: src/log.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -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();
 	}
 }


Modified: src/pluginutils.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -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)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list