]> git.donarmstrong.com Git - lilypond.git/commitdiff
texi2html: example uses same formatting as quote (default would be a table!)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 24 Jul 2008 11:04:48 +0000 (13:04 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 24 Jul 2008 11:04:48 +0000 (13:04 +0200)
Documentation/lilypond.css
lilypond-texi2html.init

index f82b6d8cf8a1c532c8b4e08f9cc6d49721537eb7..21145a8ab05e30b14209336696dd66c54a9058ce 100644 (file)
@@ -56,7 +56,7 @@ blockquote {
   padding: 3px;
   width: 40em;
 }
-.verbatim {
+.verbatim, .example {
   font-family: "Courier New",Courier,monospace;
 }
 hr {
index 048a7f33d0a8d142ce62ea53f480d636b5981d2c..16791585bcfdbbe48d89a42b278a5b743aa303e9 100644 (file)
@@ -27,6 +27,8 @@
 ###    cells; For this, I heavily extend the texi2html code to allow for
 ###    differently aligned cells and for multi-line tables);
 ###    Implemented in lilypond_print_navigation
+### -) Different formatting than the default: example uses the same formatting
+###    as quote.
 ### -) Allow translated section titles: All section titles can be translated,
 ###    the original (English) title is associated with @translationof. This is
 ###    needed, because the file name / anchor is generated from the original
@@ -77,6 +79,12 @@ $Texi2HTML::Config::init_out             = \&lilypond_init_out;
 $Texi2HTML::Config::unknown              = \&lilypond_unknown;
 $Texi2HTML::Config::print_page_head      = \&lilypond_print_page_head;
 
+# Examples should be formatted similar to quotes:
+$Texi2HTML::Config::complex_format_map->{'example'} = {
+  'begin' => q{"<blockquote><pre class=\"example\">"},
+  'end' => q{"</pre></blockquote>\n"},
+ };
+
 
 my @section_to_filename;