line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Trac::Text; |
2
|
8
|
|
|
8
|
|
55
|
use strict; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
243
|
|
3
|
8
|
|
|
8
|
|
39
|
use warnings; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
1383
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.23'; |
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; |