--- a/src/gtkimhtml.c Sun Apr 10 20:28:20 2005 -0400
+++ b/src/gtkimhtml.c Mon Apr 11 10:59:35 2005 -0400
@@ -1777,20 +1777,6 @@
if (!g_ascii_strncasecmp(string, "!--", strlen ("!--"))) {
gchar *e = strstr (string + strlen("!--"), "-->");
- * If we uncomment the following line then HTML comments will be
- * hidden. This is good because it means when a WinAIM users pastes
- * part of a conversation to you, the screen names won't be
- * duplicated (because WinAIM pastes an HTML comment containing the
- * screen name, for some reason).
- * However, uncommenting this is bad because we use HTML comment
- * tags to print timestamps to conversations (at least, I think...)
- * KingAnt thinks it would be best to display timestamps using
- * something other than comment tags.
*len = e - string + strlen ("-->");
*tag = g_strndup (string + strlen ("!--"), *len - strlen ("!---->"));
@@ -2575,8 +2561,12 @@
gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);
- if (imhtml->show_comments && !(options & GTK_IMHTML_NO_COMMENTS))
+ if (imhtml->show_comments && !(options & GTK_IMHTML_NO_COMMENTS)) { wpos = g_snprintf (ws, len, "%s", tag);
+ gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos); + ws[0] = '\0'; wpos = 0; /* NEW_BIT (NEW_COMMENT_BIT); */