[glib] Remove extra newline chars in local g_application_command_line_print/err



commit 10474aca34f8adf7258294d678e56525b7570c70
Author: Brian Koning <gnome brkoning gmail com>
Date:   Mon Jul 23 11:04:45 2012 -0400

    Remove extra newline chars in local g_application_command_line_print/err
    
    The extra newline chars in the local implementation of g_application_command_line_print and g_application_command_line_printerr() cause an unwanted newline after printed strings. This patch removes the newline chars to make the functions consistent with their documentation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680459

 gio/gapplicationcommandline.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gapplicationcommandline.c b/gio/gapplicationcommandline.c
index c51f45d..f8206cf 100644
--- a/gio/gapplicationcommandline.c
+++ b/gio/gapplicationcommandline.c
@@ -177,14 +177,14 @@ static void
 g_application_command_line_real_print_literal (GApplicationCommandLine *cmdline,
                                                const gchar             *message)
 {
-  g_print ("%s\n", message);
+  g_print ("%s", message);
 }
 
 static void
 g_application_command_line_real_printerr_literal (GApplicationCommandLine *cmdline,
                                                   const gchar             *message)
 {
-  g_printerr ("%s\n", message);
+  g_printerr ("%s", message);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]