--- loncom/xml/londefdef.pm 2001/03/26 20:36:10 1.23 +++ loncom/xml/londefdef.pm 2001/03/27 17:47:17 1.25 @@ -220,8 +220,13 @@ sub end_output { my ($target,$token,$parstack,$parser) = @_; my $currentstring = ''; if ($target eq 'web') { - $currentstring = &Apache::lonxml::get_all_text("/meta",$$parser[$#$parser]); - $currentstring = ''; + my $args=''; + if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } + if ($args eq '') { + &Apache::lonxml::get_all_text("/meta",$$parser[$#$parser]); + } else { + $currentstring = $token->[4]; + } } if ($target eq 'meta') { unless ($token->[2]->{'http-equiv'}) { @@ -250,7 +255,7 @@ sub end_output { my ($target,$token) = @_; my $currentstring = ''; if ($target eq 'web') { -# $currentstring = $token->[4]; + $currentstring = $token->[4]; } elsif ($target eq 'tex') { $currentstring = " \\begin{document} "; }