[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 13 May 2003 15:47:46 -0000
sakharuk Tue May 13 11:47:46 2003 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
Changes to print problems with answers from the construction space and do not have LaTeX garbage on the screen.
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.98 loncom/homework/caparesponse/caparesponse.pm:1.99
--- loncom/homework/caparesponse/caparesponse.pm:1.98 Tue May 13 11:27:45 2003
+++ loncom/homework/caparesponse/caparesponse.pm Tue May 13 11:47:45 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.98 2003/05/13 15:27:45 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.99 2003/05/13 15:47:45 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -319,7 +319,7 @@
if ($target eq 'answer') {
if ($high) { $ans.=' ['.$low.','.$high.']'; }
if ($sighigh) {
- if ($ENV{'form.print_answer'} eq 'yes') {
+ if (($ENV{'form.print_answer'} eq 'yes') && ($ENV{'form.grade_target'} eq 'answer')) {
$ans.= " Sig \\textit{$siglow - $sighigh}";
} else {
$ans.= " Sig <i>$siglow - $sighigh</i>";
@@ -336,7 +336,7 @@
}
if ($unit) {
if ($target eq 'answer') {
- if ($ENV{'form.print_answer'} eq 'yes') {
+ if (($ENV{'form.print_answer'} eq 'yes') && ($ENV{'form.grade_target'} eq 'answer')) {
$result.=&Apache::response::answer_part($$tagstack[-1],
"Unit: \\verb|$unit|");
} else {