line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
38971
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
48
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Pod::POM::View::TextBasic; |
5
|
|
|
|
|
|
|
our $VERSION = 0.2; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
3
|
use base 'Pod::POM::View::Text'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
451
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $DROPS = 1; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
0
|
1
|
|
sub view_for { return maybe_stopwords(@_); } |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
0
|
1
|
|
sub view_begin { return maybe_stopwords(@_); } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub maybe_stopwords { |
16
|
0
|
|
|
0
|
0
|
|
my ($format, $text) = $_[1] =~ /^\s*\=\w+\s+(\S+)\s+(.*?)\s*$/si; |
17
|
0
|
|
|
|
|
|
$text =~ s/\s+/ /g; |
18
|
0
|
0
|
|
|
|
|
return $format =~ /^(stopwords?|spelling|allow|allow_words|allowed_words)$/gi? $text : ''; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
1
|
|
sub view_seq_bold { return $_[1]; } |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub view_seq_italic { return $_[1]; } |
24
|
|
|
|
|
|
|
|
25
|
0
|
0
|
|
0
|
1
|
|
sub view_seq_code { return $DROPS? '' : $_[1] } |
26
|
|
|
|
|
|
|
|
27
|
0
|
0
|
|
0
|
1
|
|
sub view_seq_file { return $DROPS? '' : $_[1] } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub view_seq_link { |
30
|
0
|
0
|
|
0
|
1
|
|
return $DROPS? '' : $_[1]; |
31
|
0
|
|
|
|
|
|
my ($self, $link) = @_; |
32
|
0
|
0
|
|
|
|
|
return ($link =~ m/^(.*?)\|/) ? |
33
|
|
|
|
|
|
|
$1 : $link; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
0
|
|
0
|
1
|
|
sub view_verbatim { return $DROPS? '' : $_[1] } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Pod::POM::View::TextBasic - Pod::POM::View::Text without sequence formatting |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Pod::POM->default_view( 'Pod::POM::View::TextBasic' ) |
47
|
|
|
|
|
|
|
or die $Pod::POM::ERROR; |
48
|
|
|
|
|
|
|
my $p = Pod::POM->new; |
49
|
|
|
|
|
|
|
$p->parse_file(...); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
A sub-class of L |
54
|
|
|
|
|
|
|
that does not ornament inline sequences to indicate their presence. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This class was developed to aid spell-checking POD: for that reason, |
57
|
|
|
|
|
|
|
verbatim blocks, inline code sequences, and the bodies of links are ignored |
58
|
|
|
|
|
|
|
unless C is set to a false value by the user. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHOR |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Lee Goddard (C). |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 COPYRIGHT |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Copyright (C) 2011, Lee Goddard. All Rights Reserved. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|