im.pidgin.pidgin: d567c3024540efcf356b0e1201e926ef551c8ec6

sadrul at pidgin.im sadrul at pidgin.im
Wed Jan 9 21:26:06 EST 2008


-----------------------------------------------------------------
Revision: d567c3024540efcf356b0e1201e926ef551c8ec6
Ancestor: 3ab2ccec72324b65dee436800ef9375157c55c20
Author: sadrul at pidgin.im
Date: 2008-01-10T02:27:04
Branch: im.pidgin.pidgin

Modified files:
        pidgin/plugins/convcolors.c

ChangeLog: 

Prpls seem to be sending '\n' (or '\r\n') for newlines, instead of '<br>' to the core. Fixes #4545.

-------------- next part --------------
============================================================
--- pidgin/plugins/convcolors.c	4021b9473e13937acc3a5d4381dc402c2f02f27a
+++ pidgin/plugins/convcolors.c	52399efef13964c9c78127a16dd2f33e89aa7a95
@@ -77,7 +77,7 @@ enum
 	FONT_UNDERLINE	= 1 << 2
 };
 
-struct
+static struct
 {
 	PurpleMessageFlags flag;
 	char *prefix;
@@ -129,7 +129,12 @@ displaying_msg(PurpleAccount *account, c
 
 	if (purple_prefs_get_bool(PREF_IGNORE))
 	{
+		/* This seems to be necessary, especially for received messages. */
 		t = *displaying;
+		*displaying = purple_strreplace(t, "\n", "<br>");
+		g_free(t);
+
+		t = *displaying;
 		*displaying = purple_markup_strip_html(t);
 		g_free(t);
 


More information about the Commits mailing list