changeset 18372:47ff5e98b371

Make the MSN logger set flags and ues <br> instead of \n. This fixes the problem where these logs would show up as one line in the history plugin. Thank Michael Shkutkov for tracking this down and providing the fixes.
author Richard Laager <rlaager@wiktel.com>
date Sat, 30 Jun 2007 22:04:32 +0000
parents c13d115b6c6e
children 07c8311ec4e4
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Sat Jun 30 22:00:19 2007 +0000
+++ b/libpurple/plugins/log_reader.c	Sat Jun 30 22:04:32 2007 +0000
@@ -874,6 +874,7 @@
 	GString *text = NULL;
 	xmlnode *message;
 
+	*flags = PURPLE_LOG_READ_NO_NEWLINE;
 	g_return_val_if_fail(log != NULL, g_strdup(""));
 
 	data = log->logger_data;
@@ -1126,10 +1127,10 @@
 			text = g_string_append(text, style);
 			text = g_string_append(text, "\">");
 			text = g_string_append(text, tmp);
-			text = g_string_append(text, "</span>\n");
+			text = g_string_append(text, "</span><br>");
 		} else {
 			text = g_string_append(text, tmp);
-			text = g_string_append(text, "\n");
+			text = g_string_append(text, "<br>");
 		}
 		g_free(tmp);
 	}