changeset 7838:b1ac84461c17

[gaim-migrate @ 8491] i hate the gtkimhtml "parser" with a passion committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 12 Dec 2003 07:18:48 +0000
parents d20f729d3f18
children 10fe9f6d2b23
files src/gtkimhtml.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Dec 12 04:09:15 2003 +0000
+++ b/src/gtkimhtml.c	Fri Dec 12 07:18:48 2003 +0000
@@ -1037,6 +1037,7 @@
 	VALID_TAG ("/SPAN");
 	VALID_TAG ("BR/"); /* hack until gtkimhtml handles things better */
 	VALID_TAG ("IMG");
+	VALID_OPT_TAG ("BR"); /* see comment 2 lines up */
 
 	if (!g_ascii_strncasecmp(string, "!--", strlen ("!--"))) {
 		gchar *e = strstr (string + strlen("!--"), "-->");
@@ -1382,6 +1383,7 @@
 					break;
 				case 25:	/* BR */
 				case 58:	/* BR/ */
+				case 60:	/* BR (opt) */
 					ws[wpos] = '\n';
 					wpos++;
 					//NEW_BIT (NEW_TEXT_BIT);
@@ -1568,7 +1570,7 @@
 				case 56:	/* SPAN */
 				case 57:	/* /SPAN */
 					break;
-				case 60:	/* comment */
+				case 61:	/* comment */
 					//NEW_BIT (NEW_TEXT_BIT);
 					if (imhtml->show_comments)
 						wpos = g_snprintf (ws, len, "%s", tag);