line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Simple::Role::XHTML::WithAccurateTargets; |
2
|
2
|
|
|
2
|
|
107426
|
use Moo::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
13
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.003001'; |
5
|
|
|
|
|
|
|
$VERSION =~ tr/_//d; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
702
|
use Pod::Simple::XHTML (); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
30
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
448
|
use namespace::clean; |
|
2
|
|
|
|
|
11006
|
|
|
2
|
|
|
|
|
12
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub idify { |
12
|
20
|
|
|
20
|
0
|
48
|
my ( $self, $t, $not_unique ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
20
|
|
|
|
|
38
|
$t =~ s/^\s+//; |
15
|
20
|
|
|
|
|
47
|
$t =~ s/\s+$//; |
16
|
20
|
|
|
|
|
80
|
$t =~ s/[\s-]+/-/g; |
17
|
|
|
|
|
|
|
|
18
|
20
|
100
|
|
|
|
53
|
return $t |
19
|
|
|
|
|
|
|
if $not_unique; |
20
|
|
|
|
|
|
|
|
21
|
12
|
|
|
|
|
20
|
my $ids = $self->{ids}; |
22
|
12
|
|
|
|
|
18
|
my $i = ''; |
23
|
12
|
|
|
|
|
48
|
$i++ while $ids->{"$t$i"}++; |
24
|
12
|
|
|
|
|
31
|
return "$t$i"; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
with 'Pod::Simple::Role::XHTML::RepairLinkEncoding' |
28
|
|
|
|
|
|
|
if !defined &Pod::Simple::XHTML::decode_entities; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |