From: <jgr...@us...> - 2003-02-19 19:57:47
|
Update of /cvsroot/popfile/engine/Classifier In directory sc8-pr-cvs1:/tmp/cvs-serv20977/Classifier Modified Files: MailParse.pm Log Message: When we encounter a table tag in the HTML parser reset the font color Index: MailParse.pm =================================================================== RCS file: /cvsroot/popfile/engine/Classifier/MailParse.pm,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** MailParse.pm 19 Feb 2003 19:43:15 -0000 1.86 --- MailParse.pm 19 Feb 2003 19:57:42 -0000 1.87 *************** *** 319,322 **** --- 319,329 ---- } + # If we hit a table tag then any font information is lost + + if ( $tag =~ /^(table|td|tr|th)$/i ) { + $self->{htmlfontcolor} = map_color( $self, 'black' ); + $self->{htmlbackcolor} = map_color( $self, 'white' ); + } + # Count the number of TD elements increment_word( $self, 'html:td' ) if ( $tag =~ /^td$/i ); |