Update of /cvsroot/gaim/gaim/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv12500/plugins
Modified Files:
history.c
Log Message:
some people (like faceprint) don't log html.
Index: history.c
===================================================================
RCS file: /cvsroot/gaim/gaim/plugins/history.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- history.c 6 Oct 2002 07:56:43 -0000 1.1
+++ history.c 7 Oct 2002 02:05:29 -0000 1.2
@@ -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);
|