line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Trac::Text; |
2
|
8
|
|
|
8
|
|
46
|
use strict; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
192
|
|
3
|
8
|
|
|
8
|
|
33
|
use warnings; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
1174
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.24'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { |
8
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
9
|
0
|
|
|
|
|
|
my %args = @_; |
10
|
|
|
|
|
|
|
my $self = { |
11
|
|
|
|
|
|
|
context => $args{context}, |
12
|
0
|
|
|
|
|
|
html => '', |
13
|
|
|
|
|
|
|
}; |
14
|
0
|
|
|
|
|
|
bless $self, $class; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub parse { |
18
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
19
|
0
|
|
|
|
|
|
$self->{html} = ''; |
20
|
0
|
0
|
|
|
|
|
my $text = shift or return; |
21
|
0
|
|
|
|
|
|
$self->{html} = $text; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
0
|
|
sub html { $_[0]->{html}; } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |