summaryrefslogtreecommitdiff
path: root/Build/source/utils/texi2html/examples/inlinestyle.init
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/texi2html/examples/inlinestyle.init')
-rw-r--r--Build/source/utils/texi2html/examples/inlinestyle.init39
1 files changed, 39 insertions, 0 deletions
diff --git a/Build/source/utils/texi2html/examples/inlinestyle.init b/Build/source/utils/texi2html/examples/inlinestyle.init
new file mode 100644
index 00000000000..ecd8c63e4fb
--- /dev/null
+++ b/Build/source/utils/texi2html/examples/inlinestyle.init
@@ -0,0 +1,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;