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:
parent
812b3f972f
commit
69537c2c1d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user