# HG changeset patch # User Luke Schierer # Date 1033956329 0 # Node ID a9cf9903bd745923239e6b66420c76602edac157 # Parent 81d514f109de267b5e22eaf7f4c20b6434a45d61 [gaim-migrate @ 3713] some people (like faceprint) don't log html. committer: Tailor Script diff -r 81d514f109de -r a9cf9903bd74 plugins/history.c --- a/plugins/history.c Sun Oct 06 19:09:07 2002 +0000 +++ b/plugins/history.c Mon Oct 07 02:05:29 2002 +0000 @@ -22,6 +22,7 @@ char buf[HISTORY_SIZE+1]; char *tmp; int size; + GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; if (stat(path, &st) || S_ISDIR(st.st_mode) || st.st_size == 0 || !(fd = fopen(path, "r"))) { @@ -41,8 +42,11 @@ tmp++; if (*tmp) tmp++; - - gtk_imhtml_append_text(GTK_IMHTML(c->text), tmp, strlen(tmp), GTK_IMHTML_NO_COLOURS | GTK_IMHTML_NO_NEWLINE); + + if(*tmp == '<') + options |= GTK_IMHTML_NO_NEWLINE; + + gtk_imhtml_append_text(GTK_IMHTML(c->text), tmp, strlen(tmp), options); g_free(userdir); g_free(logfile);