Mercurial > pidgin
changeset 3602:a9cf9903bd74
[gaim-migrate @ 3713]
some people (like faceprint) don't log html.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 07 Oct 2002 02:05:29 +0000 |
parents | 81d514f109de |
children | 6c87f7510212 |
files | plugins/history.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);