chiark / gitweb /
fix up wrapping with a span
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Jun 2010 19:32:14 +0000 (20:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Jun 2010 19:32:14 +0000 (20:32 +0100)
cgi

diff --git a/cgi b/cgi
index 9aee6434928c7a58fe56465616b054546e645ba1..79f2b11cfe0802ecb059c185a697828c59a76f3f 100755 (executable)
--- a/cgi
+++ b/cgi
@@ -328,16 +328,16 @@ if (param('debug')) {
 start_page("$section graphs");
 
 foreach my $group (@{ $section_groups{$section} }) {
-    my $elems= $group_elems{$section,$group};
-    if (@$elems > 1) { print "<table><tr><td>"; }
     print a({href=>"$self?detail=$group&section=$section"});
     my $imgurl= "$self?graph=$group&section=$section";
+    print "<span style=\"white-space:nowrap\">";
+    my $elems= $group_elems{$section,$group};
     foreach my $elem (@$elems) {
        my $g= $graphs{$section,$group,$elem};
        print img({src=>"$imgurl&elem=$elem&sloth=".($sloth + $g->{Slower}),
                   alt=>''});
     }
+    print "</span>";
     print "</a>\n";
-    if (@$elems > 1) { print "</td></tr></table>"; }
 }