aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-09-26 22:12:10 +0100
committerSimon McVittie <smcv@debian.org>2010-09-26 22:33:54 +0100
commit5876968fa1ff1225542d2afd836d1027276bab44 (patch)
treef29254c84087af3e74d314e34f6941cde9d9edb6 /IkiWiki
parentb4471d44184a03180ad19a98673d52752ce73b46 (diff)
downloadikiwiki-5876968fa1ff1225542d2afd836d1027276bab44.tar
ikiwiki-5876968fa1ff1225542d2afd836d1027276bab44.tar.gz
htmlbalance: be compatible with HTML::Tree 4.0
The HTML::Tree changelog says: [THINGS THAT MAY BREAK YOUR CODE OR TESTS] ... * Attribute names are now validated in as_XML and invalid names will cause an error. and indeed the regression tests do get an error.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/htmlbalance.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/htmlbalance.pm b/IkiWiki/Plugin/htmlbalance.pm
index 26f8e494b..da450eea7 100644
--- a/IkiWiki/Plugin/htmlbalance.pm
+++ b/IkiWiki/Plugin/htmlbalance.pm
@@ -43,7 +43,7 @@ sub sanitize (@) {
my @nodes = $tree->disembowel();
foreach my $node (@nodes) {
if (ref $node) {
- $ret .= $node->as_XML();
+ $ret .= $node->as_HTML(undef, '', {});
chomp $ret;
$node->delete();
}