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
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