version 1.93, 2004/02/20 16:38:49
|
version 1.94, 2004/02/26 18:28:33
|
Line 643 sub html_initialize {
|
Line 643 sub html_initialize {
|
# Use 3 digits for the total |
# Use 3 digits for the total |
$sequence->{'width_sum'}+=3; |
$sequence->{'width_sum'}+=3; |
} |
} |
|
# |
if ($chosen_output->{'every_problem'}) { |
if ($chosen_output->{'every_problem'}) { |
# one problem per digit |
# one problem per digit |
$sequence->{'width_problem'} = $sequence->{'num_assess_parts'}; |
$sequence->{'width_problem'} = $sequence->{'num_assess_parts'}; |
Line 651 sub html_initialize {
|
Line 652 sub html_initialize {
|
} |
} |
$sequence->{'width_total'} = $sequence->{'width_problem'} + |
$sequence->{'width_total'} = $sequence->{'width_problem'} + |
$sequence->{'width_sum'}; |
$sequence->{'width_sum'}; |
if ($sequence->{'width_total'} < length($sequence->{'title'})) { |
if ($sequence->{'width_total'} < length(&HTML::Entities::decode($sequence->{'title'}))) { |
$sequence->{'width_total'} = length($sequence->{'title'}); |
$sequence->{'width_total'} = length(&HTML::Entities::decode($sequence->{'title'})); |
$sequence->{'width_problem'} = |
|
$sequence->{'width_total'} - $sequence->{'width_sum'}; |
|
} |
} |
# |
# |
# Output the sequence titles |
# Output the sequence titles |
Line 728 sub html_outputstudent {
|
Line 727 sub html_outputstudent {
|
# |
# |
if (! $chosen_output->{'every_problem'}) { |
if (! $chosen_output->{'every_problem'}) { |
$performance = ''; |
$performance = ''; |
|
$performance_length=0; |
} |
} |
$performance .= ' 'x($seq->{'width_problem'}-$performance_length). |
$performance .= ' 'x($seq->{'width_total'}-$performance_length-$seq->{'width_sum'}). |
$ratio; |
$ratio; |
# |
# |
$Str .= $performance.$padding; |
$Str .= $performance.$padding; |