--- loncom/homework/bridgetask.pm 2006/11/27 23:33:01 1.210 +++ 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.210 2006/11/27 23:33:01 albertel Exp $ +# $Id: bridgetask.pm,v 1.211 2006/11/28 16:36:04 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2300,8 +2300,8 @@ sub end_Dimension { # those old ones will continue to work. # It puts the # LC_question div to come after any starting closie div # that the dimension produces - if ($result =~ m{\s*}) { - $result =~ s{(\s*)} + if ($result =~ m{^\s*}) { + $result =~ s{^(\s*)} {$1\n
}; } else { $result = "\n".'
'.