pidgin/gtkimhtml.c

branch
cpw.darkrain42.xmpp.avatars
changeset 26941
f01a88534d49
parent 26655
95790807b4d7
child 26727
b8885bab55ab
--- a/pidgin/gtkimhtml.c	Fri Apr 03 02:42:56 2009 +0000
+++ b/pidgin/gtkimhtml.c	Sun Apr 05 21:49:01 2009 +0000
@@ -3320,7 +3320,8 @@
 			pos++;
 		} else if ((pos == 0 || wpos == 0 || isspace(*(c - 1))) &&
 		           (len_protocol = gtk_imhtml_is_protocol(c)) > 0 &&
-				   c[len_protocol] && !isspace(c[len_protocol])) {
+				   c[len_protocol] && !isspace(c[len_protocol]) &&
+				   (c[len_protocol] != '<' || !gtk_imhtml_is_tag(c + 1, NULL, NULL, NULL))) {
 			br = FALSE;
 			if (wpos > 0) {
 				gtk_text_buffer_insert(imhtml->text_buffer, iter, ws, wpos);

mercurial