--- loncom/publisher/lonpublisher.pm 2003/08/13 18:41:59 1.128 +++ loncom/publisher/lonpublisher.pm 2003/08/21 17:07:57 1.131 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.128 2003/08/13 18:41:59 www Exp $ +# $Id: lonpublisher.pm,v 1.131 2003/08/21 17:07:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -718,8 +718,9 @@ sub fix_ids_and_indices { } if (!$endtag) { if ($token->[4]=~m:/>$:) { $endtag=' /'; }; } $outstring.='<'.$tag.$newparmstring.$endtag.'>'; - if ($lctag eq 'm') { - $outstring.=&get_all_text_unbalanced('/m',\@parser); + if ($lctag eq 'm' || $lctag eq 'script' + || $lctag eq 'display' || $lctag eq 'tex') { + $outstring.=&get_all_text_unbalanced('/'.$lctag,\@parser); } } elsif ($token->[0] eq 'E') { if ($token->[2]) { @@ -1754,11 +1755,15 @@ unless ($ENV{'form.phase'} eq 'two') { $thisfn=~/\.(\w+)$/; my $thistype=$1; my $thisembstyle=&Apache::loncommon::fileembstyle($thistype); - $r->print('