Strip trailing whitespace from console messages

This commit is contained in:
Alexander Butenko 2010-01-13 06:56:12 +01:00 committed by Christian Dywan
parent 96178e60b7
commit 11ff993ecd

View 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);