line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Trac::Hr; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
69
|
use strict; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
244
|
|
4
|
8
|
|
|
8
|
|
40
|
use warnings; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
280
|
|
5
|
8
|
|
|
8
|
|
49
|
use base qw(Text::Trac::BlockNode); |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
49
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.22'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
220
|
|
|
220
|
0
|
431
|
my $self = shift; |
11
|
220
|
|
|
|
|
4278
|
$self->pattern(qr/^----$/xms); |
12
|
220
|
|
|
|
|
1546
|
return $self; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub parse { |
16
|
1
|
|
|
1
|
0
|
4
|
my ( $self, $l ) = @_; |
17
|
1
|
|
|
|
|
60
|
my $c = $self->context; |
18
|
1
|
|
|
|
|
22
|
my $pattern = $self->pattern; |
19
|
1
|
50
|
|
|
|
10
|
$l =~ $pattern or return; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
|
|
18
|
$l =~ s{ $pattern }{ }xmsg; |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
4
|
$c->htmllines($l); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |