--- loncom/homework/structuretags.pm 2001/04/26 21:27:15 1.35 +++ loncom/homework/structuretags.pm 2001/05/13 20:01:34 1.37 @@ -8,6 +8,7 @@ use Apache::lonnet; sub BEGIN { &Apache::lonxml::register('Apache::structuretags',('block','while','randomlist','problem','web','tex','part','preduedate','postanswerdate','solved','notsolved','startouttext','endouttext')); +# &Apache::lonxml::register_insert('problem','',('part','postanswerdate','preduedate')) } sub start_web { @@ -46,6 +47,9 @@ sub start_problem { &Apache::run::run($expression,$safeeval); my $status; my $datemsg; + + my $result=&Apache::londefdef::start_html($target,$token,$parstack,$parser,$safeeval); + if ($target eq 'web' || $target eq 'grade') { ($status,$datemsg) = &Apache::lonhomework::check_date('0'); push (@Apache::inputtags::status,$status); @@ -55,7 +59,7 @@ sub start_problem { if ( $status eq 'CLOSED' ) { my $bodytext=&Apache::lonxml::get_all_text("/problem",$$parser[$#$parser]); if ( $target eq "web" ) { - return "