Don't trim leading whitespace, fixes #208.

Use g_strchomp (https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-strchomp) instead of g_strstrip which both removes leading and trailing whitespace.
This commit is contained in:
vimbaer 2015-01-18 21:44:21 +01:00 committed by Eizen
parent 812b3f972f
commit 69537c2c1d

View File

@ -353,7 +353,7 @@ int notification_init(notification * n, int id)
n->msg = string_replace_all("%p", "", n->msg);
}
n->msg = g_strstrip(n->msg);
n->msg = g_strchomp(n->msg);
if (id == 0) {
n->id = ++next_notification_id;
@ -563,7 +563,7 @@ void notification_update_text_to_render(notification *n)
char *buf = NULL;
char *msg = g_strstrip(n->msg);
char *msg = g_strchomp(n->msg);
/* print dup_count and msg */
if ((n->dup_count > 0 && !settings.hide_duplicates_count)