[LON-CAPA-cvs] cvs: loncom /homework optionresponse.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 25 Jul 2003 20:56:08 -0000
sakharuk Fri Jul 25 16:56:08 2003 EDT
Modified files:
/loncom/homework optionresponse.pm
Log:
Bug 1743 (tex needs to NOT add unnecessary list indices) is fixed.
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.81 loncom/homework/optionresponse.pm:1.82
--- loncom/homework/optionresponse.pm:1.81 Fri Jul 25 15:29:15 2003
+++ loncom/homework/optionresponse.pm Fri Jul 25 16:56:08 2003
@@ -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.82 2003/07/25 20:56:08 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -328,7 +328,8 @@
$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') {