line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
############################################################################# |
2
|
|
|
|
|
|
|
# (c) by Tels 2004. Part of Convert::Wiki |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# represents monospaced text blocks (aka ) |
5
|
|
|
|
|
|
|
############################################################################# |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Convert::Wiki::Node::Mono; |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
27235
|
use 5.006001; |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
132
|
|
10
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
101
|
|
11
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
128
|
|
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
3
|
|
315
|
use Convert::Wiki::Node; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
101
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
15
|
use vars qw/$VERSION @ISA/; |
|
3
|
|
|
|
|
14
|
|
|
3
|
|
|
|
|
570
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
@ISA = qw/Convert::Wiki::Node/; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
$VERSION = '0.03'; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
############################################################################# |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub _as_wiki |
24
|
|
|
|
|
|
|
{ |
25
|
7
|
|
|
7
|
|
12
|
my ($self,$txt) = @_; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# " Foo bar is baz.\n Baz.\n" |
28
|
|
|
|
|
|
|
|
29
|
7
|
|
|
|
|
19
|
$txt =~ s/\n/\n /g; |
30
|
|
|
|
|
|
|
|
31
|
7
|
|
|
|
|
39
|
' ' . $txt . "\n\n"; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub interlink |
35
|
|
|
|
|
|
|
{ |
36
|
|
|
|
|
|
|
# no interlinking in monospaced paragraphs! |
37
|
7
|
|
|
7
|
0
|
12
|
my ($self, $wiki) = @_; |
38
|
|
|
|
|
|
|
|
39
|
7
|
|
|
|
|
27
|
$self->{txt}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
__END__ |