comparison src/gtkimhtml.c @ 5174:376349b04123

[gaim-migrate @ 5538] made jabber xhtml stuff even better, and fixed a couple bugs in the process committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 19 Apr 2003 06:28:40 +0000
parents c4664c2bfbf8
children 1c739f2ce94f
comparison
equal deleted inserted replaced
5173:bfd1e4c681a1 5174:376349b04123
728 VALID_TAG ("STRONG"); 728 VALID_TAG ("STRONG");
729 VALID_TAG ("/STRONG"); 729 VALID_TAG ("/STRONG");
730 730
731 VALID_OPT_TAG ("SPAN"); 731 VALID_OPT_TAG ("SPAN");
732 VALID_TAG ("/SPAN"); 732 VALID_TAG ("/SPAN");
733 VALID_TAG ("BR/"); /* hack until gtkimhtml handles things better */
733 734
734 if (!g_ascii_strncasecmp(string, "!--", strlen ("!--"))) { 735 if (!g_ascii_strncasecmp(string, "!--", strlen ("!--"))) {
735 gchar *e = strstr (string + strlen("!--"), "-->"); 736 gchar *e = strstr (string + strlen("!--"), "-->");
736 if (e) { 737 if (e) {
737 *len = e - string + strlen ("-->"); 738 *len = e - string + strlen ("-->");
1004 } 1005 }
1005 title--; 1006 title--;
1006 } 1007 }
1007 break; 1008 break;
1008 case 25: /* BR */ 1009 case 25: /* BR */
1010 case 58: /* BR/ */
1009 ws[wpos] = '\n'; 1011 ws[wpos] = '\n';
1010 wpos++; 1012 wpos++;
1011 NEW_BIT (NEW_TEXT_BIT); 1013 NEW_BIT (NEW_TEXT_BIT);
1012 break; 1014 break;
1013 case 26: /* HR */ 1015 case 26: /* HR */
1197 case 50: /* CITE */ 1199 case 50: /* CITE */
1198 case 51: /* /CITE */ 1200 case 51: /* /CITE */
1199 case 56: /* SPAN */ 1201 case 56: /* SPAN */
1200 case 57: /* /SPAN */ 1202 case 57: /* /SPAN */
1201 break; 1203 break;
1202 case 58: /* comment */ 1204 case 59: /* comment */
1203 NEW_BIT (NEW_TEXT_BIT); 1205 NEW_BIT (NEW_TEXT_BIT);
1204 if (imhtml->show_comments) 1206 if (imhtml->show_comments)
1205 wpos = g_snprintf (ws, len, "%s", tag); 1207 wpos = g_snprintf (ws, len, "%s", tag);
1206 NEW_BIT (NEW_COMMENT_BIT); 1208 NEW_BIT (NEW_COMMENT_BIT);
1207 break; 1209 break;