--- loncom/homework/structuretags.pm 2008/08/04 22:42:11 1.426 +++ loncom/homework/structuretags.pm 2008/08/13 16:56:15 1.427 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.426 2008/08/04 22:42:11 felicia Exp $ +# $Id: structuretags.pm,v 1.427 2008/08/13 16:56:15 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1382,7 +1382,11 @@ sub end_languageblock { my $result = &Apache::lonxml::endredirection(); my $which = &Apache::lonxml::get_param('which',$parstack, $safeeval); - $available_texts{$which} = $result; + foreach my $language (split(/\s*\,\s*/,$which)) { + unless ($language=~/\w/) { next; } + $available_texts{$language} = $result; + } + } return ''; }