--- a/pidgin/gtkconv.c Sat Jun 02 19:01:44 2012 +0000
+++ b/pidgin/gtkconv.c Sat Jun 02 19:08:43 2012 +0000
@@ -1066,12 +1066,10 @@
savelog_writefile_cb(void *user_data, const char *filename)
- /* TODO WEBKIT: I don't know how to support this using webkit yet. */
PurpleConversation *conv = (PurpleConversation *)user_data;
if ((fp = g_fopen(filename, "w+")) == NULL) {
@@ -1079,22 +1077,27 @@
+ webview = GTK_WEBVIEW(PIDGIN_CONVERSATION(conv)->webview); name = purple_conversation_get_name(conv);
- fprintf(fp, "<html>\n<head>\n");
+ fprintf(fp, "<html>\n"); + fprintf(fp, "<head>\n"); fprintf(fp, "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");
- fprintf(fp, "<title>%s</title>\n</head>\n<body>\n", name);
- fprintf(fp, _("<h1>Conversation with %s</h1>\n"), name);
- lines = gtk_imhtml_get_markup_lines(
- GTK_IMHTML(PIDGIN_CONVERSATION(conv)->imhtml));
- text = g_strjoinv("<br>\n", lines);
+ fprintf(fp, "<title>%s</title>\n", name); + text = gtk_webview_get_head_html(webview);
- fprintf(fp, "\n</body>\n</html>\n");
+ fprintf(fp, "</head>\n"); + fprintf(fp, "<body>\n"); + fprintf(fp, _("<h1>Conversation with %s</h1>\n"), name); + text = gtk_webview_get_body_html(webview); + fprintf(fp, "%s", text); + fprintf(fp, "\n</body>\n"); + fprintf(fp, "</html>\n");