line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: S.pm 284 2006-12-01 07:51:49Z chronos $ |
2
|
|
|
|
|
|
|
package BBCode::Tag::S; |
3
|
1
|
|
|
1
|
|
6
|
use base qw(BBCode::Tag::Inline); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
96
|
|
4
|
1
|
|
|
1
|
|
6
|
use BBCode::Util qw(multilineText); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
60
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
246
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.34'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub BodyPermitted($):method { |
10
|
4
|
|
|
4
|
1
|
14
|
return 1; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub toHTML($):method { |
14
|
1
|
|
|
1
|
1
|
2
|
my $this = shift; |
15
|
1
|
|
|
|
|
11
|
my $pfx = $this->parser->css_prefix; |
16
|
1
|
50
|
|
|
|
5
|
my $css = $this->parser->css_direct_styles ? qq( style="text-decoration: line-through") : ""; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
4
|
my $ret = qq(); |
19
|
1
|
|
|
|
|
11
|
$ret .= $this->bodyHTML; |
20
|
1
|
|
|
|
|
3
|
$ret .= ''; |
21
|
1
|
|
|
|
|
4
|
return multilineText $ret; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub toText($):method { |
25
|
0
|
|
|
0
|
1
|
|
return multilineText '~'.shift->bodyText().'~'; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |