diff src/protocols/jabber/jabber.c @ 11646:42ce5c68870a

[gaim-migrate @ 13924] this has been bugging me committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 12 Oct 2005 04:24:20 +0000
parents 69bd7af50d31
children 828802f2251b
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Wed Oct 12 04:21:18 2005 +0000
+++ b/src/protocols/jabber/jabber.c	Wed Oct 12 04:24:20 2005 +0000
@@ -986,11 +986,12 @@
 			jbr = l->data;
 
 			if(jbr->status) {
-				char *stripped;
-				stripped = gaim_markup_strip_html(jbr->status);
-				text = g_markup_escape_text(stripped, -1);
-				g_free(stripped);
-				/* XXX: need some nl to br love here */
+				char *tmp;
+				text = gaim_strreplace(jbr->status, "\n", "<br />\n");
+				tmp = gaim_markup_strip_html(text);
+				g_free(text);
+				text = g_markup_escape_text(tmp, -1);
+				g_free(tmp);
 			}
 
 			if(jbr->name)