--- loncom/homework/structuretags.pm 2005/11/08 19:35:56 1.317 +++ loncom/homework/structuretags.pm 2005/11/08 21:09:08 1.318 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.317 2005/11/08 19:35:56 albertel Exp $ +# $Id: structuretags.pm,v 1.318 2005/11/08 21:09:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,11 +115,17 @@ sub page_start { &Apache::lonxml::fontsettings(); } my $body_tag_start; - if (!defined($found{'body'}) && $env{'request.state'} eq 'construct' - && $env{'environment.remote'} eq 'off') { - if ($target eq 'web' || $target eq 'edit') { - $body_tag_start=&Apache::loncommon::bodytag(); - $body_tag_start.=&Apache::lonxml::message_location(); + if (!defined($found{'body'}) && $env{'request.state'} eq 'construct') { + if ($env{'environment.remote'} eq 'off') { + if ($target eq 'web' || $target eq 'edit') { + $body_tag_start=&Apache::loncommon::bodytag(); + $body_tag_start.=&Apache::lonxml::message_location(); + } + } else { + if ($target eq 'web' || $target eq 'edit') { + $body_tag_start=&Apache::loncommon::bodytag(undef,undef,undef,1); + $body_tag_start.=&Apache::lonxml::message_location(); + } } } elsif (!defined($found{'body'})) { my $background=&Apache::lonxml::get_param('background',$parstack,