Changeset 1876

Show
Ignore:
Timestamp:
11/28/06 16:58:51
Author:
miyagawa
Message:

load Filter::HTMLTidy from Bundle::Planet, if HTML::Tidy is available. Refs #334

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Bundle/Planet.pm

    r1744 r1876  
    1818        module => 'Filter::StripTagsFromTitle', 
    1919    }); 
     20 
     21    eval { require HTML::Tidy }; 
     22    unless ($@) { 
     23        $context->load_plugin({ 
     24            module => 'Filter::HTMLTidy', 
     25        }); 
     26    } 
    2027 
    2128    $context->load_plugin({ 
     
    145152=item Filter::StripTagsFromTitle 
    146153 
     154=item Filter::HTMLTidy (if HTML::Tidy is available) 
     155 
    147156=item Filter::HTMLScrubber 
    148157 
  • trunk/plagger/lib/Plagger/Plugin/Filter/HTMLTidy.pm

    r1875 r1876  
    4747__END__ 
    4848 
     49=for stopwords htmltidy 
     50 
    4951=head1 NAME 
    5052