--- loncom/homework/bridgetask.pm 2006/05/09 15:09:21 1.144 +++ loncom/homework/bridgetask.pm 2006/05/09 18:07:56 1.145 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.144 2006/05/09 15:09:21 albertel Exp $ +# $Id: bridgetask.pm,v 1.145 2006/05/09 18:07:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -384,12 +384,15 @@ sub start_Task { $name = &Apache::structuretags::get_resource_name($parstack,$safeeval); } - my ($result,$form_tag_start)= - &Apache::structuretags::page_start($target,$token,$tagstack,$parstack, - $parser,$safeeval,$name,&style()); - - $result .= '
'."\n"; - + my ($result,$form_tag_start); + if ($target eq 'web' || $target eq 'webgrade' || $target eq 'tex' + || $target eq 'edit') { + ($result,$form_tag_start) = + &Apache::structuretags::page_start($target,$token,$tagstack, + $parstack,$parser,$safeeval, + $name,&style()); + $result .= '
'."\n"; + } if ($target eq 'web' && $env{'request.state'} ne 'construct') { if ($Apache::lonhomework::modifygrades) {