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 | 4 | use strict; | |||
1 | 1 | ||||||
1 | 23 | ||||||
4 | 1 | 1 | 3 | use warnings; | |||
1 | 1 | ||||||
1 | 23 | ||||||
5 | 1 | 1 | 3 | use base 'Text::HikiDoc::Plugin'; | |||
1 | 0 | ||||||
1 | 5 | ||||||
6 | |||||||
7 | sub to_html { | ||||||
8 | 5 | 5 | 1 | 3 | my $self = shift; | ||
9 | 5 | 50 | 12 | my $str = @_ ? join("\n",@_) : ''; | |||
10 | |||||||
11 | 5 | 100 | 18 | $str =~ s/\n/ {empty_element_suffix}\n/g if ($self->{br_mode} eq 'true'); |
|||
12 | |||||||
13 | 5 | 49 | return ''.$str.''; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; |