Mercurial > pidgin
diff src/html.c @ 4777:e23a7e166680
[gaim-migrate @ 5097]
- a couple compile cleanups
- status messages and tooltips won't crash gaim when people put up certain
away messages
- yahoo status messages will show the current "custom" message instead of
the previous one
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 14 Mar 2003 22:49:32 +0000 |
parents | c4ebe1a8484b |
children | 89c0c811befa |
line wrap: on
line diff
--- a/src/html.c Fri Mar 14 17:41:41 2003 +0000 +++ b/src/html.c Fri Mar 14 22:49:32 2003 +0000 @@ -56,16 +56,20 @@ for (i = 0, j = 0; text2[i]; i++) { if (text2[i] == '<') { k = i + 1; - while (text2[k]) { - if (text2[k] == '<') { - visible = 1; - break; + if(g_ascii_isspace(text2[k])) { + visible = 1; + } else { + while (text2[k]) { + if (text2[k] == '<') { + visible = 1; + break; + } + if (text2[k] == '>') { + visible = 0; + break; + } + k++; } - if (text2[k] == '>') { - visible = 0; - break; - } - k++; } } else if (text2[i] == '>' && !visible) { visible = 1;