Mercurial > pidgin
comparison src/gtkimhtml.c @ 1626:59c7e7831ccd
[gaim-migrate @ 1636]
ari pollak told me that there were problems
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 22 Mar 2001 01:37:44 +0000 |
parents | 35a13ece3a9c |
children | 23b734cf1161 |
comparison
equal
deleted
inserted
replaced
1625:8c92ea5d854f | 1626:59c7e7831ccd |
---|---|
2277 got_tag = TRUE; | 2277 got_tag = TRUE; |
2278 NEW_BIT (NEW_TEXT_BIT); | 2278 NEW_BIT (NEW_TEXT_BIT); |
2279 bold++; | 2279 bold++; |
2280 } else if (!g_strcasecmp (tag, "</B>") || !g_strcasecmp (tag, "</BOLD>")) { | 2280 } else if (!g_strcasecmp (tag, "</B>") || !g_strcasecmp (tag, "</BOLD>")) { |
2281 got_tag = TRUE; | 2281 got_tag = TRUE; |
2282 NEW_BIT (NEW_TEXT_BIT); | |
2282 if (bold) { | 2283 if (bold) { |
2283 NEW_BIT (NEW_TEXT_BIT); | |
2284 bold--; | 2284 bold--; |
2285 } | 2285 } |
2286 } else if (!g_strcasecmp (tag, "<I>") || !g_strcasecmp (tag, "<ITALIC>")) { | 2286 } else if (!g_strcasecmp (tag, "<I>") || !g_strcasecmp (tag, "<ITALIC>")) { |
2287 got_tag = TRUE; | 2287 got_tag = TRUE; |
2288 NEW_BIT (NEW_TEXT_BIT); | 2288 NEW_BIT (NEW_TEXT_BIT); |
2289 italics++; | 2289 italics++; |
2290 } else if (!g_strcasecmp (tag, "</I>") || !g_strcasecmp (tag, "</ITALIC>")) { | 2290 } else if (!g_strcasecmp (tag, "</I>") || !g_strcasecmp (tag, "</ITALIC>")) { |
2291 got_tag = TRUE; | 2291 got_tag = TRUE; |
2292 NEW_BIT (NEW_TEXT_BIT); | |
2292 if (italics) { | 2293 if (italics) { |
2293 NEW_BIT (NEW_TEXT_BIT); | |
2294 italics--; | 2294 italics--; |
2295 } | 2295 } |
2296 } else if (!g_strcasecmp (tag, "<U>") || !g_strcasecmp (tag, "<UNDERLINE>")) { | 2296 } else if (!g_strcasecmp (tag, "<U>") || !g_strcasecmp (tag, "<UNDERLINE>")) { |
2297 got_tag = TRUE; | 2297 got_tag = TRUE; |
2298 NEW_BIT (NEW_TEXT_BIT); | 2298 NEW_BIT (NEW_TEXT_BIT); |
2299 underline++; | 2299 underline++; |
2300 } else if (!g_strcasecmp (tag, "</U>") || !g_strcasecmp (tag, "</UNDERLINE>")) { | 2300 } else if (!g_strcasecmp (tag, "</U>") || !g_strcasecmp (tag, "</UNDERLINE>")) { |
2301 got_tag = TRUE; | 2301 got_tag = TRUE; |
2302 NEW_BIT (NEW_TEXT_BIT); | |
2302 if (underline) { | 2303 if (underline) { |
2303 NEW_BIT (NEW_TEXT_BIT); | |
2304 underline--; | 2304 underline--; |
2305 } | 2305 } |
2306 } else if (!g_strcasecmp (tag, "<S>") || !g_strcasecmp (tag, "<STRIKE>")) { | 2306 } else if (!g_strcasecmp (tag, "<S>") || !g_strcasecmp (tag, "<STRIKE>")) { |
2307 got_tag = TRUE; | 2307 got_tag = TRUE; |
2308 NEW_BIT (NEW_TEXT_BIT); | 2308 NEW_BIT (NEW_TEXT_BIT); |
2309 strike++; | 2309 strike++; |
2310 } else if (!g_strcasecmp (tag, "</S>") || !g_strcasecmp (tag, "</STRIKE>")) { | 2310 } else if (!g_strcasecmp (tag, "</S>") || !g_strcasecmp (tag, "</STRIKE>")) { |
2311 got_tag = TRUE; | 2311 got_tag = TRUE; |
2312 NEW_BIT (NEW_TEXT_BIT); | |
2312 if (strike) { | 2313 if (strike) { |
2313 NEW_BIT (NEW_TEXT_BIT); | |
2314 strike--; | 2314 strike--; |
2315 } | 2315 } |
2316 } else if (!g_strcasecmp (tag, "<SUB>")) { | 2316 } else if (!g_strcasecmp (tag, "<SUB>")) { |
2317 got_tag = TRUE; | 2317 got_tag = TRUE; |
2318 NEW_BIT (NEW_TEXT_BIT); | |
2318 sub++; | 2319 sub++; |
2319 } else if (!g_strcasecmp (tag, "</SUB>")) { | 2320 } else if (!g_strcasecmp (tag, "</SUB>")) { |
2320 got_tag = TRUE; | 2321 got_tag = TRUE; |
2322 NEW_BIT (NEW_TEXT_BIT); | |
2321 if (sub) { | 2323 if (sub) { |
2322 sub--; | 2324 sub--; |
2323 } | 2325 } |
2324 } else if (!g_strcasecmp (tag, "<SUP>")) { | 2326 } else if (!g_strcasecmp (tag, "<SUP>")) { |
2325 got_tag = TRUE; | 2327 got_tag = TRUE; |
2328 NEW_BIT (NEW_TEXT_BIT); | |
2326 sup++; | 2329 sup++; |
2327 } else if (!g_strcasecmp (tag, "</SUP>")) { | 2330 } else if (!g_strcasecmp (tag, "</SUP>")) { |
2328 got_tag = TRUE; | 2331 got_tag = TRUE; |
2332 NEW_BIT (NEW_TEXT_BIT); | |
2329 if (sup) { | 2333 if (sup) { |
2330 sup--; | 2334 sup--; |
2331 } | 2335 } |
2332 } else if (!g_strcasecmp (tag, "<TITLE>")) { | 2336 } else if (!g_strcasecmp (tag, "<TITLE>")) { |
2333 if (options & GTK_IMHTML_NO_TITLE) { | 2337 if (options & GTK_IMHTML_NO_TITLE) { |
2334 got_tag = TRUE; | 2338 got_tag = TRUE; |
2339 NEW_BIT (NEW_TEXT_BIT); | |
2335 title++; | 2340 title++; |
2336 } else { | 2341 } else { |
2337 intag = FALSE; | 2342 intag = FALSE; |
2338 tpos = 0; | 2343 tpos = 0; |
2339 continue; | 2344 continue; |