print "\n";
},
- Message => sub ($) { format_html( shift, $bug ); print hr . "\n" },
+ Message => sub ($) { format_html( shift, Bug => $bug ); print hr . "\n" },
Footer => sub () { print end_html }
}
);
-title => $c{TrackerName} . ": " . $title,
-style => { 'src' => $c{StyleSheet} }
);
- format_html( $msg, undef );
+ format_html( $msg );
print end_html;
}
elsif ( $mode eq "part" ) {
. " ($type, $disposition)" . "]";
}
-sub format_html ($;$) {
+sub format_html ($;%) {
my $m = shift;
- my $bug = shift;
+ my %attrs = @_;
+
+ my $bug = $attrs{Bug} || undef;
print comment( "Message "
. $m->{id} . ": "