Diff for /loncom/homework/structuretags.pm between versions 1.171 and 1.172

version 1.171, 2003/05/13 20:38:55 version 1.172, 2003/05/14 13:33:00
Line 480  sub end_problem { Line 480  sub end_problem {
     ($target eq 'answer') || ($target eq 'tex')      ($target eq 'answer') || ($target eq 'tex')
    ) {     ) {
     if ($status eq 'CAN_ANSWER') {      if ($status eq 'CAN_ANSWER') {
  if ($target ne 'tex') {   if ($target ne 'tex' &&
     if ($ENV{'form.print_answer'} ne 'yes') {$result.="</form></body>\n";}      $ENV{'form.answer_output_mode'} ne 'tex') {
       $result.="</form></body>\n";
  }   }
     } elsif ($status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER' ||      } elsif ($status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER' ||
      $status eq 'UNCHECKEDOUT' ) {       $status eq 'UNCHECKEDOUT' ) {
Line 504  sub end_problem { Line 505  sub end_problem {
     &Apache::lonhomework::showhash(%Apache::lonhomework::results);      &Apache::lonhomework::showhash(%Apache::lonhomework::results);
     &finalize_storage();      &finalize_storage();
  }   }
  if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') ) {   if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct')
     if ($ENV{'form.print_answer'} ne 'yes') {      && $ENV{'form.answer_mode_output'} ne 'tex') {
  $result.='</html>'; #normally we get it from xmlend, but in CSTR      $result.='</html>'; # normally we get it from xmlend, but in CSTR
                     # we always show answer mode too.                          # we always show answer mode too.
     }  
  }   }
     } elsif ($target eq 'meta') {      } elsif ($target eq 'meta') {
  if ($Apache::inputtags::part eq '0') {   if ($Apache::inputtags::part eq '0') {

Removed from v.1.171  
changed lines
  Added in v.1.172


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>