--- loncom/homework/hint.pm 2003/04/08 02:47:42 1.40 +++ loncom/homework/hint.pm 2003/04/18 07:53:15 1.41 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # implements the tags that control the hints # -# $Id: hint.pm,v 1.40 2003/04/08 02:47:42 albertel Exp $ +# $Id: hint.pm,v 1.41 2003/04/18 07:53:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -74,7 +74,7 @@ sub end_hintgroup { &Apache::lonxml::debug("found :$id:$numtries:$hinttries:"); my $hinttext=&Apache::lonxml::endredirection; if ($Apache::lonhomework::type ne 'exam' && - $numtries >= $hinttries && $hinttext !~/^\s*$/) { + $numtries >= $hinttries && $hinttext =~/\S/) { $result='
'. $hinttext.'
'; }