'
@@ -170,8 +170,7 @@ sub end_itemgroup {
undef($columns);
}
if ($target eq 'web') {
-
- my $table='
'; # extra space to match what latex does.
+ my $table='
'; # extra space to match what latex does.
if ((!$columns) || ($columns < 0)) {
if ($direction eq 'horizontal') {
if (@names > 0) {
@@ -201,7 +200,7 @@ sub end_itemgroup {
if ($i % $columns == 0) {
$table.='
';
}
- $table.= '
'.$label.'
'.$item.'
';
+ $table.= '
'.$label.'
'.$item.'
';
if ($columns > 1) {
$table .= '
';
}
@@ -319,7 +318,8 @@ sub start_foilgroup {
&Apache::response::pushrandomnumber(undef,$target);
if ($target eq 'edit') {
$result.=&Apache::edit::start_table($token)
- .'
'.&mt('Collection Of Foils').'
'
+ .'
'.&Apache::loncommon::insert_folding_button()
+ .&mt('Collection Of Foils').'
'
@@ -581,6 +581,9 @@ sub format_prior_answer {
foreach my $name (@{ $foil_order }) {
my $item = &HTML::Entities::encode(shift(@items),'<>&"');
+ if ($item eq '') {
+ $item = ' ';
+ }
$output .= '
'.$item.'
';
}
return if (!defined($output));
@@ -681,7 +684,7 @@ sub displayfoils {
my $last_letter=$name_letter_map{$lastopt};
my $optionlist = '';
if ($target ne 'tex') {
- $optionlist="\n";
+ $optionlist="\n";
} else {
if ($Apache::lonhomework::type ne 'exam') {
if($env{'form.pdfFormFields'} eq 'yes'
@@ -698,7 +701,7 @@ sub displayfoils {
foreach $option (@used_letters) {
if ($option eq $last_letter) {
if ($target ne 'tex') {
- $optionlist.="\n";
+ $optionlist.="\n";
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes'
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER'
&& $Apache::lonhomework::type ne 'exam') {
@@ -706,7 +709,7 @@ sub displayfoils {
}
} else {
if ($target ne 'tex') {
- $optionlist.="\n";
+ $optionlist.="\n";
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes'
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER'
&& $Apache::lonhomework::type ne 'exam') {
@@ -715,7 +718,7 @@ sub displayfoils {
}
}
if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') {
- $optionlist='\n";
@@ -742,7 +745,7 @@ sub displayfoils {
}
if ($target ne 'tex') {
if ($Apache::lonhomework::type ne 'exam') {
- $question.=" \n".$optionlist.$text;
+ $question.='
'."\n".$optionlist.$text.'
';
} else {
$question.=" \n".$text;
}
@@ -750,7 +753,7 @@ sub displayfoils {
my @blank;
$question.=&Apache::optionresponse::webbubbles(\@used_letters,\@blank,$temp,$last_letter);
}
- } else {
+ } else {
# Note that if left or right positioned, we must
# confine the bubbles to righttabsize:
#