The @example environment should not create
<pre class="example"><pre class="example">...</pre></pre>
which is invalid HTML, but rather only one <pre> 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)
/* 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;
}
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;
# Examples should be formatted similar to quotes:
$Texi2HTML::Config::complex_format_map->{'example'} = {
- 'begin' => q{"<blockquote><pre class=\"example\">"},
- 'end' => q{"</pre></blockquote>\n"},
+ 'begin' => q{"<blockquote>"},
+ 'end' => q{"</blockquote>\n"},
'style' => 'code',
};