--- rat/lonpage.pm 2006/05/30 17:15:10 1.75 +++ rat/lonpage.pm 2007/05/22 00:26:31 1.77 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.75 2006/05/30 17:15:10 www Exp $ +# $Id: lonpage.pm,v 1.77 2007/05/22 00:26:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -270,7 +270,7 @@ sub handler { } } my $output=Apache::lonnet::ssi($src,%posthash); - $output=~s|//(\s*)?\s||gs; + $output=~s|//(\s*)?\s||gs; if ($target eq 'tex') { $output =~ s/^([^&]+)\\begin{document}//; $output =~ s/\\end{document}//; @@ -500,13 +500,11 @@ sub handler { '.pageseparators'} eq 'yes') { unless($target eq 'tex') { $r->print('
'); - } else { - $r->print('\hline'); - } + } } } elsif ($cellemb{$rid} eq 'img') { $r->print('>'.$metainfo.''); + $hash{'src_'.$rid}.'" />'); } elsif ($cellemb{$rid} eq 'emb') { $r->print('>'.$metainfo.''); @@ -542,7 +540,8 @@ sub handler { (($nforms>1)?'submit':'hidden').'">'); } unless ($target eq 'tex') { - $r->print(&Apache::loncommon::end_page()); + $r->print(&Apache::loncommon::end_page({'discussion' + => 1,})); } else { $r->print('\end{document}'.$number_of_columns); }