~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-proposed

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Message/Node.pm

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville, Ubuntu Merge-o-Matic, Laurent Bigonville
  • Date: 2006-07-31 15:40:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060731154008-j37ulp5pgfkddegw
Tags: 3.1.3-1ubuntu1
[ Ubuntu Merge-o-Matic ]
* Merge from debian unstable.

[ Laurent Bigonville ]
* fix debian/control.
* drop debian/patches/40_fix_dns_issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
 
380
380
      # end-of-document result values that require looking at the text
381
381
      my $r = $self->{html_results};    # temporary reference for brevity
382
 
      my $space = ($self->{rendered} =~ tr/ \t\n\r\x0b\xa0/ \t\n\r\x0b\xa0/);
383
 
      $r->{html_length} = length($self->{rendered});
 
382
 
 
383
      # count the number of spaces in the rendered text
 
384
      my $rt = pack "C0A*", $self->{rendered};
 
385
      my $space = ($rt =~ tr/ \t\n\r\x0b\xa0/ \t\n\r\x0b\xa0/);
 
386
      $r->{html_length} = length($rt);
 
387
 
384
388
      $r->{non_space_len} = $r->{html_length} - $space;
385
389
      $r->{ratio} = ($raw - $r->{html_length}) / $raw;
386
390
    }