changeset 19666:01ad48d825bd

merge of '0cf1ba2d257fe2551fe7a238c1888c4de36a402e' and '3c2d40b6a39f301d66804ea067d070c055bffa81'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 06 Sep 2007 07:50:42 +0000
parents 9600414aca2e (current diff) 37429bc82307 (diff)
children a2f5a28ba983
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu Sep 06 07:01:39 2007 +0000
+++ b/pidgin/gtkconv.c	Thu Sep 06 07:50:42 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);