--- loncom/homework/grades.pm 2014/02/27 02:28:51 1.723
+++ loncom/homework/grades.pm 2014/08/25 20:23:01 1.724
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.723 2014/02/27 02:28:51 raeburn Exp $
+# $Id: grades.pm,v 1.724 2014/08/25 20:23:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -406,7 +406,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') { @@ -2227,7 +2226,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); @@ -2296,9 +2295,17 @@ sub submission { if ($hide eq 'anon') { $lastsubonly.='