--- loncom/homework/bridgetask.pm 2007/02/18 02:04:04 1.225 +++ loncom/homework/bridgetask.pm 2007/02/22 21:40:40 1.226 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.225 2007/02/18 02:04:04 albertel Exp $ +# $Id: bridgetask.pm,v 1.226 2007/02/22 21:40:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2383,8 +2383,11 @@ sub end_Dimension { } } # puts the results at the end of the dimension - $result .= $dim_info; - + if ($result =~m{}) { + $result=~s{}{$dim_info}; + } else { + $result .= $dim_info; + } # puts the results at the beginning of the dimension # my $internal_location=&internal_location($dim); # $result=~s/\Q$internal_location\E/$dim_info/;