# HG changeset patch # User Richard Laager # Date 1191772737 0 # Node ID b6136fd465a040020085859009539e8f52f0938d # Parent 6f3eb604de73ef6858e9141416de8ce503921207 If there is no secondary text in a notify, avoid adding "\n\n" and creating a big gap. This may only be an issue if the primary text is very long. diff -r 6f3eb604de73 -r b6136fd465a0 pidgin/gtknotify.c --- a/pidgin/gtknotify.c Sun Oct 07 15:15:58 2007 +0000 +++ b/pidgin/gtknotify.c Sun Oct 07 15:58:57 2007 +0000 @@ -270,8 +270,9 @@ primary_esc = g_markup_escape_text(primary, -1); secondary_esc = (secondary != NULL) ? g_markup_escape_text(secondary, -1) : NULL; g_snprintf(label_text, sizeof(label_text), - "%s\n\n%s", - primary_esc, (secondary ? secondary_esc : "")); + "%s%s%s", + primary_esc, (secondary ? "\n\n" : ""), + (secondary ? secondary_esc : "")); g_free(primary_esc); g_free(secondary_esc);