comparison src/gtkimhtml.c @ 9636:53e3c74b3628

[gaim-migrate @ 10480] [ 807004 ] Graphical smiley substitution too eager committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 01 Aug 2004 22:00:33 +0000
parents de9c4dc072b5
children a57fa78e5752
comparison
equal deleted inserted replaced
9635:8ad07c6f6522 9636:53e3c74b3628
1458 if(*x == '&' && gtk_imhtml_is_amp_escape(x, &amp, &alen)) { 1458 if(*x == '&' && gtk_imhtml_is_amp_escape(x, &amp, &alen)) {
1459 len += alen - strlen(amp); 1459 len += alen - strlen(amp);
1460 x += alen - strlen(amp); 1460 x += alen - strlen(amp);
1461 pos = strchr (t->values->str, *amp); 1461 pos = strchr (t->values->str, *amp);
1462 } 1462 }
1463 else if (*x == '<') /* Because we're all WYSIWYG now, a '<'
1464 * char should only appear as the start of a tag. Perhaps a safer (but costlier)
1465 * check would be to call gtk_imhtml_is_tag on it */
1466 return 0;
1463 else 1467 else
1464 pos = strchr (t->values->str, *x); 1468 pos = strchr (t->values->str, *x);
1465 1469
1466 if (pos) 1470 if (pos)
1467 t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)]; 1471 t = t->children [GPOINTER_TO_INT(pos) - GPOINTER_TO_INT(t->values->str)];