@@ -7511,23 +7511,17 @@ sub write_file_table_prolog(*$$$@)
7511
7511
{
7512
7512
my ($handle , $file_heading , $bin_heading , $primary_key , @columns ) = @_ ;
7513
7513
my $num_columns = 0;
7514
- my $file_width ;
7514
+ my $file_width = 40 ;
7515
7515
my $col ;
7516
7516
my $width ;
7517
7517
7518
- $width = 20 if (scalar (@columns ) == 1);
7519
- $width = 10 if (scalar (@columns ) == 2);
7520
- $width = 8 if (scalar (@columns ) > 2);
7521
-
7522
7518
foreach $col (@columns ) {
7523
7519
my ($heading , $cols , $titles ) = @{$col };
7524
- if ($titles ) {
7525
- $num_columns += scalar (@$titles );
7526
- } else {
7527
- $num_columns += $cols ;
7528
- }
7520
+
7521
+ $num_columns += $cols ;
7529
7522
}
7530
- $file_width = 100 - $num_columns * $width ;
7523
+ $num_columns ++ if (defined ($bin_heading ));
7524
+ $width = int ((100 - $file_width ) / $num_columns );
7531
7525
7532
7526
# Table definition
7533
7527
write_html($handle , <<END_OF_HTML );
@@ -7540,7 +7534,7 @@ END_OF_HTML
7540
7534
if (defined ($bin_heading )) {
7541
7535
# owner or date column
7542
7536
write_html($handle , <<END_OF_HTML );
7543
- <td width=15 </td>
7537
+ <td width=" $width %"> </td>
7544
7538
END_OF_HTML
7545
7539
}
7546
7540
# Empty first row
@@ -8455,7 +8449,7 @@ sub write_source_line(*$$$$)
8455
8449
my $anchorClass = " " ;
8456
8450
if ($tla ne ' UNK' ) {
8457
8451
$class .= " tlaBg$bucket " ;
8458
- $anchorClass = " class=\" tlaBg$bucket \" " ;
8452
+ $anchorClass = " class=\" tlaBg$bucket \" " ;
8459
8453
}
8460
8454
my $label =
8461
8455
$main::use_legacyLabels ?
@@ -9730,7 +9724,7 @@ sub get_sort_code($$$)
9730
9724
}
9731
9725
my $help = " title=\" Click to sort table by $alt \" " ;
9732
9726
$alt = " Sort by $alt " ;
9733
- return ' <span $help class="tableHeadSort"> ' .
9727
+ return " <span $help class=\ " tableHeadSort\" > " .
9734
9728
$link_start . ' <img src="' . $base . $png . ' " width=10 height=14 ' .
9735
9729
' alt="' . $alt . ' "' . $help . ' border=0>' . $link_end . ' </span>' ;
9736
9730
}
0 commit comments