--- trunk/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm 2003/06/26 17:40:52 1279 +++ trunk/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm 2003/07/09 01:54:31 1326 @@ -768,7 +768,7 @@ } sub nbsp { my $str = shift; - ($str) ? $str : ' '; # returns non-breaking space for empty strings + ($str eq '') ? ' ' : $str ; # returns non-breaking space for empty strings } sub viewOptions($) { my $self = shift;