--- trunk2/all2all.pl 2004/07/22 19:07:16 397 +++ trunk2/all2all.pl 2004/07/24 13:48:08 398 @@ -62,22 +62,18 @@ print OUT $webpac->output( template => 'html.tt', data => \@ds, + headline => $webpac->{'headline'}, ); close(OUT); } else { print $webpac->output( template => 'text.tt', data => \@ds, + headline => $webpac->{'headline'}, ); } - my $headline; - foreach my $ds (@ds) { - if ($ds->{'tag'} eq 'headline') { - $headline = join(" ",@{$ds->{'display'}}); - last; - } - } + my $headline = $webpac->{'headline'}; my $f = $filename; $f =~ s!out/!!;