line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormatNroff::Table::Row::Nroff; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
725
|
use 5.004; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
345
|
|
4
|
8
|
|
|
8
|
|
34
|
use strict; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
216
|
|
5
|
8
|
|
|
8
|
|
32
|
use warnings; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
212
|
|
6
|
8
|
|
|
8
|
|
485
|
use parent 'HTML::FormatNroff::Table::Row'; |
|
8
|
|
|
|
|
301
|
|
|
8
|
|
|
|
|
37
|
|
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
291
|
use Carp; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
375
|
|
9
|
8
|
|
|
8
|
|
3247
|
use HTML::FormatNroff::Table::Cell::Nroff; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
2177
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub output_format { |
12
|
7
|
|
|
7
|
1
|
16
|
my ( $self, $final, $formatter, @widths ) = @_; |
13
|
|
|
|
|
|
|
|
14
|
7
|
|
|
|
|
6
|
my $cell; |
15
|
7
|
|
|
|
|
11
|
my $index = 0; |
16
|
7
|
|
|
|
|
7
|
foreach $cell ( @{ $self->{'cells'} } ) { |
|
7
|
|
|
|
|
31
|
|
17
|
6
|
|
|
|
|
20
|
my $str = $cell->format_str( $widths[$index] ); |
18
|
6
|
|
|
|
|
21
|
$formatter->out("$str "); |
19
|
6
|
|
|
|
|
38
|
$index++; |
20
|
|
|
|
|
|
|
} |
21
|
7
|
|
|
|
|
12
|
$cell = $self->{'current_cell'}; |
22
|
7
|
50
|
33
|
|
|
43
|
if ( defined $cell && $cell ne "" ) { |
23
|
7
|
|
|
|
|
28
|
my $str = $cell->format_str( $widths[$index] ); |
24
|
7
|
|
|
|
|
28
|
$formatter->out("$str"); |
25
|
|
|
|
|
|
|
} |
26
|
7
|
100
|
|
|
|
40
|
if ($final) { |
27
|
3
|
|
|
|
|
11
|
$formatter->out(".\n"); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
else { |
30
|
4
|
|
|
|
|
10
|
$formatter->out("\n"); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub add_element { |
35
|
14
|
|
|
14
|
1
|
28
|
my ( $self, %attr ) = @_; |
36
|
|
|
|
|
|
|
|
37
|
14
|
100
|
|
|
|
43
|
if ( defined( $self->{'current_cell'} ) ) { |
38
|
6
|
|
|
|
|
13
|
push( @{ $self->{'cells'} }, $self->{'current_cell'} ); |
|
6
|
|
|
|
|
14
|
|
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
14
|
|
|
|
|
20
|
$self->{'ended'} = 0; |
42
|
14
|
|
|
|
|
82
|
$self->{'current_cell'} = HTML::FormatNroff::Table::Cell::Nroff->new(%attr); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub end_element { |
46
|
14
|
|
|
14
|
1
|
19
|
my ($self) = @_; |
47
|
|
|
|
|
|
|
|
48
|
14
|
|
|
|
|
46
|
$self->{'ended'} = 1; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |