/usr/share/perl5/Text/Trac/Pre.pm is in libtext-trac-perl 0.16-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | package Text::Trac::Pre;
use strict;
use base qw(Text::Trac::BlockNode);
our $VERSION = '0.16';
sub init {
my $self = shift;
$self->pattern(qr/^{{{$/xms);
return $self;
}
sub parse {
my ( $self, $l ) = @_;
my $c = $self->{context};
my $pattern = $self->pattern;
$l =~ /$pattern/ or return $l;
my $match = $1;
if ( $l =~ /^{{{$/ ){
$c->htmllines('<pre class="wiki">');
}
while($c->hasnext){
my $l = $c->shiftline;
if ( $l =~ /^}}}$/) {
$c->htmllines('</pre>');
last;
}
else {
$c->htmllines($self->escape($l));
}
}
return;
}
1;
|