line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
############################################################################# |
2
|
|
|
|
|
|
|
# (c) by Tels 2004. Part of Convert::Wiki |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# represents a text paragraph node |
5
|
|
|
|
|
|
|
############################################################################# |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Convert::Wiki::Node::Para; |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
41044
|
use 5.006001; |
|
4
|
|
|
|
|
50
|
|
|
4
|
|
|
|
|
236
|
|
10
|
4
|
|
|
4
|
|
22
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
117
|
|
11
|
4
|
|
|
4
|
|
21
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
132
|
|
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
|
364
|
use Convert::Wiki::Node; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
102
|
|
14
|
4
|
|
|
4
|
|
4411
|
use Text::Format; |
|
4
|
|
|
|
|
20834
|
|
|
4
|
|
|
|
|
203
|
|
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
|
44
|
use vars qw/$VERSION @ISA $formatter/; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
476
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
@ISA = qw/Convert::Wiki::Node/; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$VERSION = '0.03'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
############################################################################# |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
BEGIN |
25
|
|
|
|
|
|
|
{ |
26
|
4
|
|
|
4
|
|
28
|
$formatter= Text::Format->new( { |
27
|
|
|
|
|
|
|
columns => 76, |
28
|
|
|
|
|
|
|
firstIndent => 0, |
29
|
|
|
|
|
|
|
} ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub _init |
33
|
|
|
|
|
|
|
{ |
34
|
24
|
|
|
24
|
|
45
|
my ($self,$args) = @_; |
35
|
|
|
|
|
|
|
|
36
|
24
|
|
|
|
|
100
|
$self->SUPER::_init($args); |
37
|
|
|
|
|
|
|
|
38
|
24
|
|
|
|
|
79
|
$self->{txt} =~ s/\n/ /g; # remove all newlines |
39
|
|
|
|
|
|
|
|
40
|
24
|
|
|
|
|
74
|
$self; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub _as_wiki |
44
|
|
|
|
|
|
|
{ |
45
|
22
|
|
|
22
|
|
38
|
my ($self,$txt) = @_; |
46
|
|
|
|
|
|
|
|
47
|
22
|
|
|
|
|
79
|
$txt = $formatter->format($txt); |
48
|
|
|
|
|
|
|
|
49
|
22
|
|
|
|
|
11931
|
$txt =~ s/\n\z//; # last newline |
50
|
22
|
|
|
|
|
106
|
$txt .= "\n\n"; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
__END__ |