]> spindle.queued.net Git - midori/commitdiff
Strip trailing whitespace from console messages
authorAlexander Butenko <a.butenka@gmail.com>
Wed, 13 Jan 2010 05:56:12 +0000 (06:56 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 13 Jan 2010 05:56:12 +0000 (06:56 +0100)
panels/midori-console.c

index f47227fc1b36fcd6ce861e7e3efc247a511b9a75..f758589fc2e2d82e170c33d8f576af3b305e8ab4 100644 (file)
@@ -219,6 +219,7 @@ midori_console_treeview_render_text_cb (GtkTreeViewColumn* column,
 
     gtk_tree_model_get (model, iter, 0, &message, 1, &line, 2, &source_id, -1);
 
+    g_strchomp (message);
     text = g_strdup_printf ("%d @ %s\n%s", line, source_id, message);
     g_object_set (renderer, "text", text, NULL);
     g_free (text);