pidgin: 3803a68d: Don't put a space in front of the code i...

evands at pidgin.im evands at pidgin.im
Tue May 20 22:01:00 EDT 2008


-----------------------------------------------------------------
Revision: 3803a68d5cf2b7443bec7879a57425cbb6031fc0
Ancestor: c842e71349e82744d9939f0250b08cd9104c2b3b
Author: evands at pidgin.im
Date: 2008-05-21T01:56:52
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3803a68d5cf2b7443bec7879a57425cbb6031fc0

Modified files:
        libpurple/protocols/jabber/message.c

ChangeLog: 

Don't put a space in front of the code if there is no text to go before it.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	bb0688766b3cbd6ebbbcecf606d53fb6341e9a8f
+++ libpurple/protocols/jabber/message.c	3f012337d6822fc1dce052c84458f18e54ae49c6
@@ -411,7 +411,7 @@ void jabber_message_parse(JabberStream *
 			}
 
 			if(code)
-				code_txt = g_strdup_printf(_(" (Code %s)"), code);
+				code_txt = g_strdup_printf(_("%s(Code %s)"), (text ? " " : ""), code);
 
 			if(!jm->error)
 				jm->error = g_strdup_printf("%s%s", text ? text : "",


More information about the Commits mailing list