--- loncom/homework/bridgetask.pm 2006/11/27 20:42:42 1.208 +++ loncom/homework/bridgetask.pm 2006/11/28 16:36:04 1.211 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.208 2006/11/27 20:42:42 albertel Exp $ +# $Id: bridgetask.pm,v 1.211 2006/11/28 16:36:04 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1285,7 +1285,12 @@ DONEBUTTON [@_]); $criteria = &layout_webgrade_Criteria($dim,$id,$criteria); my $internal_location=&internal_location($id); - $result=~s/\Q$internal_location\E/$criteria/; + if ($result =~ m/\Q$internal_location\E/) { + $result=~s/\Q$internal_location\E/$criteria/; + } else { + $result.=$criteria; + } + } } $result.=""; @@ -2065,7 +2070,7 @@ sub start_Setup { my $dim = &get_id($parstack,$safeeval); push(@Apache::bridgetask::dimension,$dim); &Apache::lonxml::startredirection(); - return &internal_location($dim); + return;# &internal_location($dim); } { @@ -2289,8 +2294,20 @@ sub end_Dimension { } } if ($result !~ /^\s*$/s) { - $result = "\n".'