summaryrefslogtreecommitdiff
path: root/Build/source/utils/texi2html/examples/inlinestyle.init
blob: ecd8c63e4fb9aec8b22bd862449fd758d74c713a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

$TOC_LIST_ATTRIBUTE = $TOC_LIST_ATTRIBUTE .  " style=\"$TOC_LIST_STYLE\"";

# we empty CSS_LINES as all styles are inlined
$CSS_LINES = "";

$style_map{'sansserif'} = 
     { 'attribute' => "span style=\"$css_map{'sansserif'}\""};

# formatting functions

$preformatted      = \&t2h_inlinestyle_preformatted;
$summary_letter    = \&t2h_inline_summary_letter;

sub t2h_inlinestyle_preformatted($$$)
{
    my $text = shift;
    my $pre_style = shift;
    my $class = shift;

    return '' if ($text eq '');
    my $open = '<pre';
    if ($pre_style)
    {
        $open .=  " style=\"$pre_style\"";
    }
    return $open .= " class=\"$class\">$text</pre>";
}

sub t2h_inline_summary_letter($$$)
{
   my $letter = shift;
   my $file = shift;
   my $identifier = shift;
   return &$anchor('', $file . '#' . $identifier, '<b>' . &$protect_html($letter) . '</b>', 'class="summary-letter" style="text-decoration: none"');

}

1;