line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter::Linebreaksbr; |
2
|
2
|
|
|
2
|
|
724
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
47
|
|
3
|
2
|
|
|
2
|
|
9
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
8
|
|
4
|
2
|
|
|
2
|
|
38
|
use warnings FATAL => 'all'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
60
|
|
5
|
2
|
|
|
2
|
|
10
|
use parent 'DTL::Fast::Filter'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{linebreaksbr} = __PACKAGE__; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#@Override |
10
|
|
|
|
|
|
|
sub filter |
11
|
|
|
|
|
|
|
{ |
12
|
1
|
|
|
1
|
0
|
2
|
shift; # self |
13
|
1
|
|
|
|
|
1
|
my $filter_manager = shift; # filter_manager |
14
|
1
|
|
|
|
|
2
|
my $value = shift; # value |
15
|
1
|
|
|
|
|
2
|
shift; # context |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
2
|
$filter_manager->{safe} = 1; |
18
|
1
|
|
|
|
|
5
|
$value =~ s/\n/ \n/gsi; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
4
|
return $value; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |