line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Livedoor::Wiki::Plugin::Block::Line; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
31
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
173
|
|
4
|
5
|
|
|
5
|
|
29
|
use strict; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
175
|
|
5
|
5
|
|
|
5
|
|
28
|
use base qw(Text::Livedoor::Wiki::Plugin::Block); |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
670
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub check { |
8
|
143
|
|
|
143
|
1
|
244
|
my $class = shift; |
9
|
143
|
|
|
|
|
410
|
my $line = shift; |
10
|
143
|
|
|
|
|
229
|
my $args = shift; |
11
|
143
|
|
|
|
|
309
|
my $id = $args->{id}; |
12
|
143
|
|
|
|
|
234
|
my $on_next = $args->{on_next}; |
13
|
143
|
100
|
|
|
|
383
|
if( $line =~ /^----/ ) { |
14
|
|
|
|
|
|
|
#XXX |
15
|
5
|
|
|
|
|
13
|
$Text::Livedoor::Wiki::scratchpad->{skip_ajust_block_break} = '1'; |
16
|
|
|
|
|
|
|
|
17
|
5
|
|
|
|
|
19
|
$line =~ s/^----//; |
18
|
5
|
|
|
|
|
30
|
return { line => $line }; |
19
|
|
|
|
|
|
|
} |
20
|
138
|
|
|
|
|
622
|
return; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub get { |
24
|
3
|
|
|
3
|
1
|
7
|
my $class = shift; |
25
|
3
|
|
|
|
|
6
|
my $block = shift; |
26
|
3
|
|
|
|
|
4
|
my $inline = shift; |
27
|
3
|
|
|
|
|
5
|
my $items = shift; |
28
|
3
|
|
|
|
|
6
|
my $text = ''; |
29
|
3
|
|
|
|
|
20
|
$text .= qq| | . $inline->parse($_->{line}) . "\n" for @$items; |
30
|
3
|
|
|
|
|
19
|
return $text; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Text::Livedoor::Wiki::Plugin::Block::Line - Block Line Plugin |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
let's have a line. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
---- |
46
|
|
|
|
|
|
|
---- line |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 FUNCTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 check |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 get |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
polocky |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |