From: Ian Jackson Date: Sun, 27 Jun 2010 19:32:14 +0000 (+0100) Subject: fix up wrapping with a span X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=73e60f159e168308b20ee2e8903b00c9e8660de1;p=rrd-graphs.git fix up wrapping with a span --- diff --git a/cgi b/cgi index 9aee643..79f2b11 100755 --- 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 "
"; } print a({href=>"$self?detail=$group§ion=$section"}); my $imgurl= "$self?graph=$group§ion=$section"; + print ""; + 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 ""; print "\n"; - if (@$elems > 1) { print "
"; } }