From: Reinhold Kainhofer Date: Sun, 7 Jun 2009 12:40:31 +0000 (+0200) Subject: texi2html: Use only one
 for @example -> valid HTML now
X-Git-Tag: release/2.13.2-0~51
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ffe524db9af052b14f801725bf8b06317e678bd8;p=lilypond.git

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.
---

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 d6ae4f3a66..8cb5392d3f 100644
--- a/lilypond-texi2html.init
+++ b/lilypond-texi2html.init
@@ -135,8 +135,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', };