# HG changeset patch # User Sadrul Habib Chowdhury # Date 1189065042 0 # Node ID 01ad48d825bd9cfcac659754fec5d5e9a07331db # Parent 9600414aca2ec8f45e012c126ee2f53999714c07# Parent 37429bc82307530ff577978d164ad1549c45a0fa merge of '0cf1ba2d257fe2551fe7a238c1888c4de36a402e' and '3c2d40b6a39f301d66804ea067d070c055bffa81' diff -r 9600414aca2e -r 01ad48d825bd pidgin/gtkconv.c --- 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, "\n%s\n", name); fprintf(fp, _("

Conversation with %s

\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\n\n"); fclose(fp);