my %handlers = (
mbox => {
- Header => sub () { print header( -type => 'application/mbox', -charset => 'utf-8', ); },
+ Header => sub () {
+ print header( -type => 'application/mbox', -charset => 'utf-8', );
+ },
Message => sub ($) {
my $m = shift;
eval {
my $fh;
- # Could forge a placeholder for messages which aren't present here.
+ # Could forge a placeholder for messages which aren't present here.
$fh = $m->headers;
print for (<$fh>);
$fh = $m->body;
print for (<$fh>);
};
+
# Ignore errors...
},
Footer => sub () { }
print header( -charset => 'utf-8', );
print start_html(
- -title => $c{TrackerName} . ": #$bugid - " . htmlsanit( $bug->{title} ),
+ -title => $c{TrackerName}
+ . ": #$bugid - "
+ . htmlsanit( $bug->{title} ),
-style => { 'src' => $c{StyleSheet} }
);
print "\n";
sub fmtdate ($) {
- return htmlsanit( strftime( "%a %b %e %H:%M:%S %Y", gmtime(shift) ) );
+ return htmlsanit(
+ strftime( "%a %b %e %H:%M:%S %Y", gmtime(shift) ) );
}
my $creationdate = fmtdate( $bug->{creationdate} );
"Date: " . htmlsanit($creationdate),
"Last Update: " . htmlsanit($lastchangedate),
"Severity: " . htmlsanit( $bug->{severity} ),
- "Affects: " . htmlsanit( join( ", ", $bug->tags("affects") ) ),
+ "Affects: "
+ . htmlsanit( join( ", ", $bug->tags("affects") ) ),
"State: " . b( $bug->{open} ? "Open" : "Closed" )
]
)
print "\n";
},
- Message => sub ($) { format_html(shift, $bug); print hr . "\n" },
+ Message => sub ($) { format_html( shift, $bug ); print hr . "\n" },
Footer => sub () { print end_html }
}
);