[system] / trunk / webwork-modperl / lib / WeBWorK / ContentGenerator / Problem.pm Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1377 Revision 1378
766 . scalar @answerNames . " $numIncorrectNoun correct, for a score of $scorePercent."; 766 . scalar @answerNames . " $numIncorrectNoun correct, for a score of $scorePercent.";
767 return CGI::table({-class=>"attemptResults"}, CGI::Tr(\@tableRows)) . ($showSummary ? CGI::p({class=>'emphasis'},$summary) : ""); 767 return CGI::table({-class=>"attemptResults"}, CGI::Tr(\@tableRows)) . ($showSummary ? CGI::p({class=>'emphasis'},$summary) : "");
768} 768}
769sub nbsp { 769sub nbsp {
770 my $str = shift; 770 my $str = shift;
771 ($str eq '') ? ' ' : $str ; # returns non-breaking space for empty strings 771 ($str =~/\S/) ? $str : ' ' ; # returns non-breaking space for empty strings
772 # tricky cases: $str =0;
773 # $str is a complex number
772} 774}
773sub viewOptions($) { 775sub viewOptions($) {
774 my $self = shift; 776 my $self = shift;
775 my $displayMode = $self->{displayMode}; 777 my $displayMode = $self->{displayMode};
776 my %must = %{ $self->{must} }; 778 my %must = %{ $self->{must} };

Legend:
Removed from v.1377  
changed lines
  Added in v.1378

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9