blib/lib/Text/HikiDoc/Plugin/ins.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | 3 | 4 | 75.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 21 | 22 | 95.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Text::HikiDoc::Plugin::ins; | ||||||
2 | |||||||
3 | 1 | 1 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 40 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 3 | ||||||
1 | 38 | ||||||
5 | 1 | 1 | 6 | use base 'Text::HikiDoc::Plugin'; | |||
1 | 2 | ||||||
1 | 8 | ||||||
6 | |||||||
7 | sub to_html { | ||||||
8 | 5 | 5 | 1 | 8 | my $self = shift; | ||
9 | 5 | 50 | 19 | my $str = @_ ? join("\n",@_) : ''; | |||
10 | |||||||
11 | 5 | 100 | 33 | $str =~ s/\n/ {empty_element_suffix}\n/g if ($self->{br_mode} eq 'true'); |
|||
12 | |||||||
13 | 5 | 84 | return ''.$str.''; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |