# HG changeset patch # User Sadrul Habib Chowdhury # Date 1189064850 0 # Node ID 37429bc82307530ff577978d164ad1549c45a0fa # Parent 1328766140481b6bbe773c8a696df4ced281f75e I think this fixes #2858. diff -r 132876614048 -r 37429bc82307 pidgin/gtkconv.c --- 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, "\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);