--- loncom/xml/londefdef.pm 2000/11/30 10:41:27 1.12 +++ loncom/xml/londefdef.pm 2000/11/30 11:44:50 1.13 @@ -16,13 +16,13 @@ sub BEGIN { #===================================================================== TAG SUBROUTINES #-- sub start_output { - my ($target,$token,$parstack,$parser) = @_; + my ($target,$token) = @_; $Apache::lonxml::textredirection = 1; my $result = ''; return $result; } sub end_output { - my ($target,$token,$parstack,$parser) = @_; + my ($target,$token) = @_; $Apache::lonxml::textredirection = 0; my $result = ''; return $result; @@ -213,6 +213,10 @@ sub BEGIN { if ($target eq 'web') { $currentstring = $token->[4]; } + if ($target eq 'meta') { + $currentstring=''; + &start_output(); + } return $currentstring; } sub end_title { @@ -220,6 +224,10 @@ sub BEGIN { my $currentstring = ''; if ($target eq 'web') { $currentstring = $token->[2]; + } + if ($target eq 'meta') { + &end_output(); + $currentstring=''; } return $currentstring; } @@ -345,7 +353,10 @@ sub BEGIN { $currentstring .= $token->[4]; } elsif ($target eq 'tex') { $currentstring .= "\\chapter{ "; - } + } elsif ($target eq 'meta') { + $currentstring=''; + &start_output(); + } return $currentstring; } sub end_h1 { @@ -355,7 +366,10 @@ sub BEGIN { $currentstring .= $token->[2]; } elsif ($target eq 'tex') { $currentstring .= "}"; - } + } elsif ($target eq 'meta') { + &end_output(); + $currentstring=''; + } return $currentstring; } #----------------------------------------------------------------------------

tag