From caafa703ea07c02254cc23227dc89c4c1e7b91ed Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 7 Feb 2015 11:12:52 +0200 Subject: [PATCH] Iterate on tr not tbody in process_pb --- lib/Plack/App/Gruntmaster/HTML.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 8f47616..117d1b4 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -188,7 +188,7 @@ sub process_pb { my ($data, $div) = @_; $div->attr(id => $data); $div->find('h2')->replace_content(ucfirst $data); - $div->find('tbody')->iter3($args{$data}, $titer); + $div->find('tbody')->find('tr')->iter3($args{$data}, $titer); }; $tree->fid('beginner')->iter3([grep {$args{$_}} qw/beginner easy medium hard/], $iter); } -- 2.39.2