--- loncom/homework/optionresponse.pm 2003/03/27 14:58:56 1.71
+++ loncom/homework/optionresponse.pm 2003/04/02 18:07:10 1.72
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.71 2003/03/27 14:58:56 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.72 2003/04/02 18:07:10 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -316,8 +316,7 @@ sub displayfoils {
my $result;
my $name;
my $displayoptionintex=0;
- my @alphabet = ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
- 'Q','R','S','T','U','V','W','X','Y','Z');
+ my @alphabet = ('A'..'Z');
my @whichopt = &whichfoils($max,$randomize);
my $part=$Apache::inputtags::part;
my $id=$Apache::inputtags::response[-1];
@@ -383,11 +382,13 @@ sub displayfoils {
}
}
if ($target ne 'tex') {
- $optionlist='\n";
+ }
my $text=$Apache::response::foilgroup{$name.'.text'};
- if (!($text=~s|
'.$alphabet[$ind].': '.$opt[$ind].' | '; + $result.=''.$alphabet[$ind].': '.$opt[$ind].' | '; } $result.='