Mercurial > pidgin
changeset 22050:2d4c3b775620
Prpls seem to be sending '\n' (or '\r\n') for newlines, instead of '<br>' to the core. Fixes #4545.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 10 Jan 2008 02:27:04 +0000 |
parents | 3f7e58ae1305 |
children | 895120b1b926 |
files | pidgin/plugins/convcolors.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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", "<br>"); + g_free(t); + t = *displaying; *displaying = purple_markup_strip_html(t); g_free(t);