--- loncom/xml/scripttag.pm 2003/02/07 22:03:21 1.85 +++ loncom/xml/scripttag.pm 2003/05/13 20:41:08 1.87 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # '; + } + return ('','no'); +} + +sub end_LONCAPA_INTERNAL_LONHTTPD_PORT { + return ('','no'); +} + sub start_script { my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; @Apache::scripttag::parser_env = @_; @@ -80,6 +96,7 @@ sub start_script { $result.=$listing; $result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars
"; + if ($ENV{'form.print_answer'} eq 'yes') {$result='';} } } elsif ($target eq "edit" ) { #&Apache::run::run($bodytext,$safeeval); @@ -292,7 +309,9 @@ sub start_import { my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); if (!$id) { $id=$Apache::lonxml::curdepth; } push(@Apache::inputtags::import,$id); - &Apache::lonxml::newparser($parser,\$file,$dir); + + &Apache::lonxml::newparser($parser,\$file,$dir); + } elsif ($target eq "edit" ) { $result.=&Apache::edit::tag_start($target,$token); $result.=&Apache::edit::editline($token->[1],$bodytext,'',40);