line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Simple::Role::XHTML::WithAccurateTargets; |
2
|
2
|
|
|
2
|
|
92689
|
use Moo::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.003000'; |
5
|
|
|
|
|
|
|
$VERSION =~ tr/_//d; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
632
|
use Pod::Simple::XHTML (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
30
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
382
|
use namespace::clean; |
|
2
|
|
|
|
|
9761
|
|
|
2
|
|
|
|
|
9
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub idify { |
12
|
20
|
|
|
20
|
0
|
42
|
my ( $self, $t, $not_unique ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
20
|
|
|
|
|
42
|
$t =~ s/^\s+//; |
15
|
20
|
|
|
|
|
37
|
$t =~ s/\s+$//; |
16
|
20
|
|
|
|
|
74
|
$t =~ s/[\s-]+/-/g; |
17
|
|
|
|
|
|
|
|
18
|
20
|
100
|
|
|
|
48
|
return $t |
19
|
|
|
|
|
|
|
if $not_unique; |
20
|
|
|
|
|
|
|
|
21
|
12
|
|
|
|
|
21
|
my $ids = $self->{ids}; |
22
|
12
|
|
|
|
|
17
|
my $i = ''; |
23
|
12
|
|
|
|
|
43
|
$i++ while $ids->{"$t$i"}++; |
24
|
12
|
|
|
|
|
30
|
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__ |