--- loncom/homework/structuretags.pm 2004/11/10 22:20:50 1.271 +++ loncom/homework/structuretags.pm 2004/11/11 23:45:35 1.272 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.271 2004/11/10 22:20:50 albertel Exp $ +# $Id: structuretags.pm,v 1.272 2004/11/11 23:45:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -88,7 +88,10 @@ sub page_start { &Apache::lonxml::fontsettings(); } my $body_tag_start; - if (!defined($found{'body'})) { + if (!defined($found{'body'}) && $ENV{'request.state'} eq 'construct' + && $ENV{'environment.remote'} eq 'off') { + $body_tag_start=&Apache::loncommon::bodytag(); + } elsif (!defined($found{'body'})) { $body_tag_start='