--- loncom/homework/structuretags.pm 2008/09/11 14:47:17 1.430 +++ loncom/homework/structuretags.pm 2008/10/12 13:35:34 1.432 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.430 2008/09/11 14:47:17 bisitz Exp $ +# $Id: structuretags.pm,v 1.432 2008/10/12 13:35:34 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -74,7 +74,7 @@ sub start_tex { if ($target ne 'edit' && $target ne 'modified') { my $bodytext=&Apache::lonxml::get_all_text("/tex",$parser,$style); if ($target eq 'tex') { - return $bodytext.' '; + return $bodytext.'{}'; } } elsif ($target eq "edit" ) { my $bodytext = @@ -1392,9 +1392,15 @@ sub end_languageblock { my $result = &Apache::lonxml::endredirection(); my $which = &Apache::lonxml::get_param('which',$parstack, $safeeval); - foreach my $language (split(/\s*\,\s*/,$which)) { - unless ($language=~/\w/) { next; } - $available_texts{$language} = $result; + if ($which=~/\w/) { + $available_texts{$which} = $result; + } + my $otherlangs = &Apache::lonxml::get_param('other',$parstack, + $safeeval); + foreach my $language (split(/\s*\,\s*/,$otherlangs)) { + if ($language=~/\w/) { + $available_texts{$language} = $result; + } } }