Mercurial > pidgin
comparison src/gtkimhtml.c @ 2954:f6c4f2187c08
[gaim-migrate @ 2967]
Bye bye bug.
There you go, Sean.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 10 Feb 2002 22:36:18 +0000 |
parents | eef6c9ca18c9 |
children | 73f303cb91c1 |
comparison
equal
deleted
inserted
replaced
2953:fa76b0156259 | 2954:f6c4f2187c08 |
---|---|
2343 | 2343 |
2344 g_return_if_fail (imhtml != NULL); | 2344 g_return_if_fail (imhtml != NULL); |
2345 g_return_if_fail (GTK_IS_IMHTML (imhtml)); | 2345 g_return_if_fail (GTK_IS_IMHTML (imhtml)); |
2346 g_return_if_fail (bit != NULL); | 2346 g_return_if_fail (bit != NULL); |
2347 | 2347 |
2348 if ( (bit->type == TYPE_TEXT) || | 2348 if ( ((bit->type == TYPE_TEXT) || |
2349 ((bit->type == TYPE_SMILEY) && !imhtml->smileys) || | 2349 ((bit->type == TYPE_SMILEY) && !imhtml->smileys) || |
2350 ((bit->type == TYPE_COMMENT) && imhtml->comments)) { | 2350 ((bit->type == TYPE_COMMENT) && imhtml->comments)) && |
2351 bit->text) { | |
2351 gchar *copy = g_strdup (bit->text); | 2352 gchar *copy = g_strdup (bit->text); |
2352 gint pos = 0; | 2353 gint pos = 0; |
2353 gboolean seenspace = FALSE; | 2354 gboolean seenspace = FALSE; |
2354 gchar *tmp; | 2355 gchar *tmp; |
2355 | 2356 |
2762 VALID_OPT_TAG ("IMG"); | 2763 VALID_OPT_TAG ("IMG"); |
2763 VALID_OPT_TAG ("P"); | 2764 VALID_OPT_TAG ("P"); |
2764 VALID_OPT_TAG ("H3"); | 2765 VALID_OPT_TAG ("H3"); |
2765 | 2766 |
2766 if (!g_strncasecmp(string, "!--", strlen ("!--"))) { | 2767 if (!g_strncasecmp(string, "!--", strlen ("!--"))) { |
2767 gchar *e = strstr (string, "-->"); | 2768 gchar *e = strstr (string + strlen("!--"), "-->"); |
2768 if (e) { | 2769 if (e) { |
2769 *len = e - string + strlen ("-->"); | 2770 *len = e - string + strlen ("-->"); |
2770 *tag = g_strndup (string + strlen ("!--"), *len - strlen ("!---->")); | 2771 *tag = g_strndup (string + strlen ("!--"), *len - strlen ("!---->")); |
2771 return TRUE; | 2772 return TRUE; |
2772 } | 2773 } |