This file is indexed.

/usr/share/perl5/Pod/ProjectDocs/Template.pm is in libpod-projectdocs-perl 0.50-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package Pod::ProjectDocs::Template;

use strict;
use warnings;

our $VERSION = '0.50';    # VERSION

use Moose::Role;

use Template;
use File::Basename;
use File::Spec;
use Carp();

has '_curpath' => (
    is      => 'rw',
    isa     => 'Str',
    default => '',
);

has '_tt' => (
    is      => 'ro',
    isa     => 'Object',
    default => sub {
        my $self = shift;
        Template->new(
            {
                FILTERS => {
                    relpath => sub {
                        my $path    = shift;
                        my $curpath = $self->_curpath();
                        my ( $name, $dir ) = fileparse $curpath, qr/\.html/;
                        return File::Spec->abs2rel( $path, $dir );
                    },
                    return2br => sub {
                        my $text = shift;
                        $text =~ s!\r\n!<br />!g;
                        $text =~ s!\n!<br />!g;
                        return $text;
                    }
                },
            }
        );
    },
);

sub process {
    my ( $self, $doc, $data, $output ) = @_;
    $self->_curpath( $doc->get_output_path );
    $self->_tt()->process( \$data, $output, \my $text )
      or Carp::croak( $self->_tt()->error );
    $self->_curpath('');
    return $text;
}

1;
__END__