html: Align table cells vertically at the top.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 3 Sep 2014 04:09:32 +0000 (21:09 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 4 Sep 2014 04:51:37 +0000 (21:51 -0700)
This is what the ascii and cairo drivers do, and it looks best.

src/output/html.c

index c181ed2edad19eb646eb5e7e635cebf5cf0313d0..8d20a61b3796c8837412018c436f80be77958d9e 100644 (file)
@@ -377,7 +377,7 @@ html_output_table (struct html_driver *html,
 {
   int x, y;
 
-  fputs ("<TABLE>\n", html->file);
+  fputs ("<TABLE><TBODY VALIGN=\"TOP\">\n", html->file);
 
   if (caption != NULL)
     {
@@ -493,7 +493,7 @@ html_output_table (struct html_driver *html,
       fputs ("  </TR>\n", html->file);
     }
 
-  fputs ("</TABLE>\n\n", html->file);
+  fputs ("</TBODY></TABLE>\n\n", html->file);
 }
 
 struct output_driver_factory html_driver_factory =