--- loncom/homework/optionresponse.pm 2003/07/25 19:29:15 1.81
+++ loncom/homework/optionresponse.pm 2003/09/09 13:36:11 1.85
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.81 2003/07/25 19:29:15 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.85 2003/09/09 13:36:11 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -328,7 +328,8 @@ sub displayfoils {
$result.=$text."\n";
} elsif ($target eq 'tex') {
$Apache::response::foilgroup{$name.'.text'}=~s/\\item//;
- $result .='\item \textit{'.$Apache::response::foilgroup{$name.'.value'}.'}'.
+ if ($max>1) {$result .='\item ';}
+ $result .=' \textit{'.$Apache::response::foilgroup{$name.'.value'}.'}'.
":".$Apache::response::foilgroup{$name.'.text'}."\n";
}
if ($Apache::lonhomework::type eq 'exam') {
@@ -436,8 +437,8 @@ sub displayfoils {
sub optionlist_correction {
my $texoptionlist = shift;
- if ($texoptionlist=~/