| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Khonsu::Text::H6; |
|
2
|
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
37
|
use parent 'Khonsu::Text'; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
28
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub BUILD { |
|
6
|
4
|
|
|
4
|
0
|
60
|
my ($self, %params) = @_; |
|
7
|
4
|
|
50
|
|
|
67
|
$self->font->size($params{font_size} || 15); |
|
8
|
4
|
|
50
|
|
|
25
|
$self->font->line_height($params{line_height} || 13); |
|
9
|
|
|
|
|
|
|
} |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub add { |
|
12
|
57
|
|
|
57
|
0
|
229
|
my ($self, $file, %attributes) = @_; |
|
13
|
57
|
|
33
|
|
|
162
|
$attributes{h} ||= $self->font->size; |
|
14
|
57
|
50
|
|
|
|
288
|
$file->toc->outline($file, 'h6', %attributes) if $attributes{toc}; |
|
15
|
57
|
|
|
|
|
330
|
return $self->SUPER::add($file, %attributes); |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |