line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Shakan::Filter::WhiteSpace; |
2
|
2
|
|
|
2
|
|
758
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
3
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
4
|
2
|
|
|
2
|
|
8
|
use Mouse; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
with 'HTML::Shakan::Role::Filter'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub filter { |
8
|
3
|
|
|
3
|
0
|
7
|
my $self = shift; |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
|
|
6
|
local $_ = shift; |
11
|
3
|
|
|
|
|
12
|
s/^\s+//; |
12
|
3
|
|
|
|
|
14
|
s/\s+$//; |
13
|
3
|
|
|
|
|
11
|
$_; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
2
|
|
1001
|
no Mouse; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
HTML::Shakan::Filter::WhiteSpace - remove white space |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
TextField(name => 'body', filters => [qw/WhiteSpace/]) |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 DESCRIPTION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
remove trailing white spaces. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 AUTHORS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Tokuhiro Matsuno |
36
|
|
|
|
|
|
|
|