--- loncom/xml/londefdef.pm 2003/10/14 00:21:12 1.180 +++ loncom/xml/londefdef.pm 2003/10/24 21:11:46 1.186 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.180 2003/10/14 00:21:12 albertel Exp $ +# $Id: londefdef.pm,v 1.186 2003/10/24 21:11:46 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -140,7 +140,7 @@ sub end_tthoption { return $result; } -#-- tag +#-- tag (end tag optional) sub start_html { my ($target,$token) = @_; my $currentstring = ''; @@ -159,7 +159,7 @@ sub start_html { &tth::tthoptions('-L -u0'); } } - if ($target eq 'web') { + if ($target eq 'web' || $target eq 'edit') { $currentstring = &Apache::lonxml::xmlbegin(). &Apache::lonxml::fontsettings(); } elsif ($target eq 'tex') { @@ -188,7 +188,7 @@ sub end_html { return $currentstring; } -#-- tag +#-- tag (end tag optional) sub start_head { my ($target,$token) = @_; my $currentstring = ''; @@ -208,7 +208,7 @@ sub end_head { return $currentstring; } -#-- tag +#-- tag (end tag required) sub start_map { my ($target,$token) = @_; my $currentstring = ''; @@ -227,13 +227,15 @@ sub end_map { return $currentstring; } -#-- tag (end tag required) sub start_select { my ($target,$token) = @_; my $currentstring = ''; if ($target eq 'web') { $currentstring = $token->[4]; - } + } elsif ($target eq 'tex') { + $Apache::londefdef::select=0; + } return $currentstring; } @@ -246,13 +248,20 @@ sub end_select { return $currentstring; } -#--