spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quin...@apache.org
Subject svn commit: rev 10699 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin
Date Sun, 16 May 2004 09:10:58 GMT
Author: quinlan
Date: Sun May 16 02:10:58 2004
New Revision: 10699

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
Log:
add <th> and <dt> as whitespace tags (reduces BACKHAIR_* hits some)


Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm	(original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm	Sun May 16 02:10:58 2004
@@ -256,8 +256,7 @@
     push @{$self->{html_invisible_text}}, "\n";
     push @{$self->{html_text}}, "\n";
   }
-  # should probably add th and dt here
-  elsif ($tag =~ /^(?:li|td|dd)$/) {
+  elsif ($tag =~ /^(?:li|t[hd]|d[td])$/) {
     $self->display_text();
     push @{$self->{html_visible_text}}, " ";
     push @{$self->{html_invisible_text}}, " ";

Mime
View raw message