--- loncom/xml/londefdef.pm 2001/03/27 17:40:48 1.24 +++ 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'}) {