--- loncom/homework/optionresponse.pm 2004/07/06 14:53:00 1.112
+++ loncom/homework/optionresponse.pm 2004/07/12 16:19:48 1.114
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: optionresponse.pm,v 1.112 2004/07/06 14:53:00 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.114 2004/07/12 16:19:48 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -338,7 +338,7 @@ sub displayfoils {
my $lastopt=$lastresponse{$name};
if ($text!~/^\s*$/) { $break='
'; }
$result.=$break;
- if ($target eq 'web' || $target eq 'tex') {
+ if ($target eq 'web') {
my $value=$Apache::response::foilgroup{$name.'.value'};
if (!($text=~s||$value|)) {
if ($text=~/^\s*$/) {
@@ -603,6 +603,7 @@ sub end_foil {
my $result = '';
if ($target eq 'web' || $target eq 'tex' || $target eq 'analyze') {
$text=&Apache::lonxml::endredirection;
+ if ($target eq 'tex') {$text=~s/\\strut\s*\\\\\s*\\strut/\\vskip 0 mm/;}
if (($target eq 'tex') and ($Apache::lonhomework::type ne 'exam') and ($text=~/\S/)) {$text = '\vspace*{-2 mm}\item '.$text;}
}
if ($target eq 'web' || $target eq 'grade' || $target eq 'answer'