line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Simple::Role::XHTML::WithAccurateTargets; |
2
|
2
|
|
|
2
|
|
95618
|
use Moo::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.003002'; |
5
|
|
|
|
|
|
|
$VERSION =~ tr/_//d; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
582
|
use Pod::Simple::XHTML (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
29
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
394
|
use namespace::clean; |
|
2
|
|
|
|
|
9211
|
|
|
2
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub idify { |
12
|
22
|
|
|
22
|
0
|
46
|
my ( $self, $t, $not_unique ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
22
|
|
|
|
|
41
|
$t =~ s/^\s+//; |
15
|
22
|
|
|
|
|
47
|
$t =~ s/\s+$//; |
16
|
22
|
|
|
|
|
70
|
$t =~ s/[\s-]+/-/g; |
17
|
|
|
|
|
|
|
|
18
|
22
|
100
|
|
|
|
58
|
return $t |
19
|
|
|
|
|
|
|
if $not_unique; |
20
|
|
|
|
|
|
|
|
21
|
13
|
|
|
|
|
22
|
my $ids = $self->{ids}; |
22
|
13
|
|
|
|
|
21
|
my $i = ''; |
23
|
13
|
|
|
|
|
56
|
$i++ while $ids->{"$t$i"}++; |
24
|
13
|
|
|
|
|
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__ |