From 8574d4349026c4ac5a15a27c50e264bf548e29fb Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 7 Jun 2009 14:40:31 +0200 Subject: [PATCH] texi2html: Use only one
 for @example ->
 valid HTML now

The @example environment should not create
   
...
which is invalid HTML, but rather only one
 tag. texi2html creates
the correct pre tag automatically from the env name, so remove it from
the settings.
Also adjust the css to get the correct margins/padding like before.

Now, the lilypond-big-file has only 3 HTML errors left instead of ~300.
(cherry picked from commit c55f7c4cd738e7123ae55649920fac39d0e9e9d6)
---
 Documentation/lilypond-blue.css    | 7 +------
 Documentation/lilypond-mccarty.css | 7 +------
 lilypond-texi2html.init            | 4 ++--
 3 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/Documentation/lilypond-blue.css b/Documentation/lilypond-blue.css
index 74d470a469..47ac507731 100644
--- a/Documentation/lilypond-blue.css
+++ b/Documentation/lilypond-blue.css
@@ -108,17 +108,12 @@ blockquote blockquote {
   /* border: thick red dashed; */
 }
 
-.verbatim, .example .example, .lisp {
+.verbatim, .example, .lisp {
   font-size: 1.25em;
   margin: 0;
   padding: 1em;
 }
 
-.example {
-  margin: 0;
-  padding: 0;
-}
-
 hr {
   display: none;
 }
diff --git a/Documentation/lilypond-mccarty.css b/Documentation/lilypond-mccarty.css
index 247b835494..ee917448cc 100644
--- a/Documentation/lilypond-mccarty.css
+++ b/Documentation/lilypond-mccarty.css
@@ -110,17 +110,12 @@ blockquote blockquote {
   border: none;
 }
 
-.verbatim, .example .example, .lisp {
+.verbatim, .example, .lisp {
   font-size: 1em;
   padding: 1em;
   margin: 0;
 }
 
-.example {
-  padding: 0;
-  margin: 0;
-}
-
 #main hr {
   height: 0;
   padding: 0;
diff --git a/lilypond-texi2html.init b/lilypond-texi2html.init
index a25f61847b..8439436dbe 100644
--- a/lilypond-texi2html.init
+++ b/lilypond-texi2html.init
@@ -132,8 +132,8 @@ $Texi2HTML::Config::paragraph          = \&makeinfo_like_paragraph;
 
 # Examples should be formatted similar to quotes:
 $Texi2HTML::Config::complex_format_map->{'example'} = {
-  'begin' => q{"
"},
-  'end' => q{"
\n"}, + 'begin' => q{"
"}, + 'end' => q{"
\n"}, 'style' => 'code', }; -- 2.39.2