# HG changeset patch # User Sadrul Habib Chowdhury # Date 1199932024 0 # Node ID 2d4c3b775620680cffda63fc99382bcb61aa8cbe # Parent 3f7e58ae1305d7b0b195754970a092b9ecedea8d Prpls seem to be sending '\n' (or '\r\n') for newlines, instead of '
' to the core. Fixes #4545. diff -r 3f7e58ae1305 -r 2d4c3b775620 pidgin/plugins/convcolors.c --- a/pidgin/plugins/convcolors.c Wed Jan 09 14:41:29 2008 +0000 +++ b/pidgin/plugins/convcolors.c Thu Jan 10 02:27:04 2008 +0000 @@ -77,7 +77,7 @@ FONT_UNDERLINE = 1 << 2 }; -struct +static struct { PurpleMessageFlags flag; char *prefix; @@ -129,6 +129,11 @@ if (purple_prefs_get_bool(PREF_IGNORE)) { + /* This seems to be necessary, especially for received messages. */ + t = *displaying; + *displaying = purple_strreplace(t, "\n", "
"); + g_free(t); + t = *displaying; *displaying = purple_markup_strip_html(t); g_free(t);