This file is indexed.

/usr/share/perl5/CSS/Adaptor/Pretty.pm is in libcss-perl 1.09-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
58
59
package CSS::Adaptor::Pretty;

$VERSION = 1.01;

use CSS::Adaptor;
@ISA = ('CSS::Adaptor');

use strict;
use warnings;

sub output_rule {
	my ($self, $rule) = @_;
	return $rule->selectors." {\n".$rule->properties."}\n\n" ;
}

sub output_properties {
	my ($self, $properties) = @_;
	my $longest_prop = 0;
	for(@{$properties}){
		if (length($_->{property}) > $longest_prop){
			$longest_prop = length($_->{property});
		}
	}
	my $tabs = int (($longest_prop + 1)/8);
	return join("", map {
		my $sp = "\t";
		my $this = int ((length($_->{property}) + 1)/8);
		$sp .= "\t" x ($tabs - $this);
		"\t".$_->{property}.":".$sp.$_->values.";\n";
	} @{$properties});
}

1;

__END__

=head1 NAME

CSS::Adaptor::Pretty - An example adaptor for pretty-printing CSS.

=head1 SYNOPSIS

  use CSS;
  ...

=head1 DESCRIPTION

This class implements a CSS::Adaptor object to display a
stylesheet in a 'pretty' style.

=head1 AUTHORS

Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>

=head1 SEE ALSO

L<CSS>, L<CSS::Adaptor>

=cut