--- loncom/xml/londefdef.pm 2000/07/19 20:21:19 1.4 +++ loncom/xml/londefdef.pm 2000/10/12 13:51:50 1.5 @@ -18,8 +18,12 @@ sub BEGIN { my ($target,$token,$parstack,$parser) = @_; my $currentstring = ''; if ($target eq 'web') { - my $inside = $parser->get_text("/m"); - $currentstring = &Apache::lontexconvert::converted('\\documentstyle{article}'.$inside); + my $inside = &Apache::lonxml::get_all_text("/m",$$parser[$#$parser]); + $inside ='\\documentstyle{article}'.$inside; +# &Apache::lonxml::debug($inside); + $currentstring = &Apache::lontexconvert::converted(\$inside); +# &Apache::lonxml::debug($currentstring); + } elsif ($target eq 'tex') { $currentstring = "\$"; }