--- loncom/homework/outputtags.pm 2002/10/16 20:50:08 1.22 +++ loncom/homework/outputtags.pm 2002/11/21 22:35:32 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # tags that create controlled output # -# $Id: outputtags.pm,v 1.22 2002/10/16 20:50:08 albertel Exp $ +# $Id: outputtags.pm,v 1.23 2002/11/21 22:35:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -118,11 +118,11 @@ sub start_displayweight { $Apache::outputtags::showonce{'displayweight'}=1; } my $status=$Apache::inputtags::status['-1']; - if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web')) { + if (($status =~ /CAN.*_ANSWER/) && ($target eq 'web' || $target eq 'tex')) { my $id = $Apache::inputtags::part; my $weight = &Apache::lonnet::EXT("resource.$id.weight"); &Apache::lonxml::debug("duedatebox found $weight for $id"); - if (!defined($weight)) { $weight=1; } + if (!defined($weight) || ($weight eq '')) { $weight=1; } $result.=$weight; } elsif ( $target eq 'edit' ) { $result=&Apache::edit::tag_start($target,$token);