From 1d7f4e1474232c5074e6725f384bc9bd3a63aa9c Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Thu, 24 Jul 2008 13:04:48 +0200 Subject: [PATCH] texi2html: example uses same formatting as quote (default would be a table!) --- Documentation/lilypond.css | 2 +- lilypond-texi2html.init | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/lilypond.css b/Documentation/lilypond.css index f82b6d8cf8..21145a8ab0 100644 --- a/Documentation/lilypond.css +++ b/Documentation/lilypond.css @@ -56,7 +56,7 @@ blockquote { padding: 3px; width: 40em; } -.verbatim { +.verbatim, .example { font-family: "Courier New",Courier,monospace; } hr { diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init index 048a7f33d0..16791585bc 100644 --- a/lilypond-texi2html.init +++ b/lilypond-texi2html.init @@ -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{"
"},
+  'end' => q{"
\n"}, + }; + my @section_to_filename; -- 2.39.5