diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-29 15:08:18 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-29 15:08:18 -0500 |
commit | f34dc3d8bdfce58a628c8af75f3f3e09b604b1aa (patch) | |
tree | f8ff1912d0129989273097cd9f662f691034c1ab | |
parent | 0711c0c548ce1a345b4e3456e2e31be6e27ab339 (diff) | |
download | ikiwiki-f34dc3d8bdfce58a628c8af75f3f3e09b604b1aa.tar ikiwiki-f34dc3d8bdfce58a628c8af75f3f3e09b604b1aa.tar.gz |
htmlbalance: Demand-load HTML::TreeBuilder to avoid failing test suite if it is not present.
-rw-r--r-- | IkiWiki/Plugin/htmlbalance.pm | 3 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/htmlbalance.pm b/IkiWiki/Plugin/htmlbalance.pm index 261e273aa..26f8e494b 100644 --- a/IkiWiki/Plugin/htmlbalance.pm +++ b/IkiWiki/Plugin/htmlbalance.pm @@ -10,7 +10,6 @@ package IkiWiki::Plugin::htmlbalance; use warnings; use strict; use IkiWiki 3.00; -use HTML::TreeBuilder; use HTML::Entities; sub import { @@ -30,6 +29,8 @@ sub sanitize (@) { my %params=@_; my $ret = ''; + eval q{use HTML::TreeBuilder}; + error $@ if $@; my $tree = HTML::TreeBuilder->new(); $tree->ignore_unknown(0); $tree->ignore_ignorable_whitespace(0); diff --git a/debian/changelog b/debian/changelog index 8449e9ce7..3c52bed3a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,8 @@ ikiwiki (3.00) UNRELEASED; urgency=low logo developed by Anna Hess. The official logo does not seem destined to be free. * comments: Add cache avoidance. + * htmlbalance: Demand-load HTML::TreeBuilder to avoid failing test suite + if it is not present. -- Joey Hess <joeyh@debian.org> Wed, 24 Dec 2008 19:49:36 -0500 |