--- loncom/homework/grades.pm 2014/02/27 02:52:22 1.596.2.12.2.29
+++ loncom/homework/grades.pm 2014/08/25 22:17:54 1.596.2.12.2.30
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.596.2.12.2.29 2014/02/27 02:52:22 raeburn Exp $
+# $Id: grades.pm,v 1.596.2.12.2.30 2014/08/25 22:17:54 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -465,7 +465,6 @@ sub cleanRecord {
$env{'form.kwstyle'} = $keyhash{$loginuser.'_kwstyle'} ne '' ? $keyhash{$loginuser.'_kwstyle'} : '';
$env{'form.'.$symb} = 1; # so that we don't have to read it from disk for multiple sub of the same prob.
}
- $answer =~ s-\n-
-g;
return '
'.&keywords_highlight(&HTML::Entities::encode($answer, '"<>&')).''; } elsif ( $response eq 'organic') { my $result=&mt('Smile representation: [_1]', @@ -2308,7 +2307,7 @@ sub submission { foreach my $submission (@$string) { my ($partid,$respid) = ($submission =~ /^resource\.([^\.]*)\.([^\.]*)\.submission/); if (join('_',@{$part}) ne ($partid.'_'.$respid)) { next; } - my ($ressub,$hide,$subval) = split(/:/,$submission,3); + my ($ressub,$hide,$draft,$subval) = split(/:/,$submission,4); # Similarity check my $similar=''; my ($type,$trial,$rndseed); @@ -2377,9 +2376,17 @@ sub submission { if ($hide eq 'anon') { $lastsubonly.='