changeset 19665:37429bc82307

I think this fixes #2858.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 06 Sep 2007 07:47:30 +0000
parents 132876614048
children 01ad48d825bd
files pidgin/gtkconv.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu Sep 06 06:36:50 2007 +0000
+++ b/pidgin/gtkconv.c	Thu Sep 06 07:47:30 2007 +0000
@@ -929,6 +929,7 @@
 	PurpleConversation *conv = (PurpleConversation *)user_data;
 	FILE *fp;
 	const char *name;
+	char **lines;
 	gchar *text;
 
 	if ((fp = g_fopen(filename, "w+")) == NULL) {
@@ -940,10 +941,12 @@
 	fprintf(fp, "<html>\n<head><title>%s</title></head>\n<body>", name);
 	fprintf(fp, _("<h1>Conversation with %s</h1>\n"), name);
 
-	text = gtk_imhtml_get_markup(
+	lines = gtk_imhtml_get_markup_lines(
 		GTK_IMHTML(PIDGIN_CONVERSATION(conv)->imhtml));
+	text = g_strjoinv("\n", lines);
 	fprintf(fp, "%s", text);
 	g_free(text);
+	g_strfreev(lines);
 
 	fprintf(fp, "\n</body>\n</html>\n");
 	fclose(fp);