plugins/history.c

changeset 3602
b64dd6cf579a
parent 3598
03d03049ecd6
child 3655
6342dd45be58
--- 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);

mercurial