--- loncom/xml/scripttag.pm 2003/02/07 22:03:21 1.85
+++ loncom/xml/scripttag.pm 2003/06/08 21:03:19 1.95
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# ';
+ }
+ return ('','no');
+}
+
+sub end_LONCAPA_INTERNAL_LONHTTPD_PORT {
return ('','no');
}
@@ -73,7 +95,9 @@ sub start_script {
&Apache::lonxml::default_homework_load($safeeval);
}
&Apache::run::run($bodytext,$safeeval);
- if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) {
+ if (($target eq 'answer') &&
+ ($ENV{'form.answer_output_mode'} ne 'tex') &&
+ ($Apache::lonhomework::viewgrades == 'F')) {
$Apache::lonxml::evaluate--;
$result.="newwindow $output