]> granicus.if.org Git - python/commitdiff
avoid spurious vertical whitespace preceeding heading which are marked
authorFred Drake <fdrake@acm.org>
Sat, 6 Sep 2003 01:10:14 +0000 (01:10 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 6 Sep 2003 01:10:14 +0000 (01:10 +0000)
with a \label

Doc/html/style.css

index e69eac15fd0a7ec20114e3959ef29578ea66ac7e..7cc49478ee9a133eb8e1107a46406c5b75edf1b7 100644 (file)
@@ -49,6 +49,14 @@ h1, h2, h3, h4, h5, h6  { font-family: avantgarde, sans-serif;
 h1                      { font-size: 180%; }
 h2                      { font-size: 150%; }
 h3, h4                  { font-size: 120%; }
+
+/* LaTeX2HTML insists on inserting <br> elements into headers which
+ * are marked with \label.  This little bit of CSS magic ensures that
+ * these elements don't cause spurious whitespace to be added.
+ */
+h1>br, h2>br, h3>br,
+h4>br, h5>br, h6>br     { display: none; }
+
 code, tt                { font-family: "lucida typewriter", lucidatypewriter,
                                        monospace; }
 var                     { font-family: times, serif;