htmlbalance: Demand-load HTML::TreeBuilder to avoid failing test suite if it is not present.
parent
0711c0c548
commit
f34dc3d8bd
|
@ -10,7 +10,6 @@ package IkiWiki::Plugin::htmlbalance;
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use IkiWiki 3.00;
|
use IkiWiki 3.00;
|
||||||
use HTML::TreeBuilder;
|
|
||||||
use HTML::Entities;
|
use HTML::Entities;
|
||||||
|
|
||||||
sub import {
|
sub import {
|
||||||
|
@ -30,6 +29,8 @@ sub sanitize (@) {
|
||||||
my %params=@_;
|
my %params=@_;
|
||||||
my $ret = '';
|
my $ret = '';
|
||||||
|
|
||||||
|
eval q{use HTML::TreeBuilder};
|
||||||
|
error $@ if $@;
|
||||||
my $tree = HTML::TreeBuilder->new();
|
my $tree = HTML::TreeBuilder->new();
|
||||||
$tree->ignore_unknown(0);
|
$tree->ignore_unknown(0);
|
||||||
$tree->ignore_ignorable_whitespace(0);
|
$tree->ignore_ignorable_whitespace(0);
|
||||||
|
|
|
@ -17,6 +17,8 @@ ikiwiki (3.00) UNRELEASED; urgency=low
|
||||||
logo developed by Anna Hess. The official logo does not seem destined to
|
logo developed by Anna Hess. The official logo does not seem destined to
|
||||||
be free.
|
be free.
|
||||||
* comments: Add cache avoidance.
|
* 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
|
-- Joey Hess <joeyh@debian.org> Wed, 24 Dec 2008 19:49:36 -0500
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue