[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstudentassessment.pm
raeburn
raeburn at source.lon-capa.org
Fri Feb 17 16:44:11 EST 2012
raeburn Fri Feb 17 21:44:11 2012 EDT
Modified files:
/loncom/interface/statistics lonstudentassessment.pm
Log:
- Bug 6244.
- convert in-place from byte sequence to character needs to occur before
calculation of length of all characters in string.
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.167 loncom/interface/statistics/lonstudentassessment.pm:1.168
--- loncom/interface/statistics/lonstudentassessment.pm:1.167 Fri Feb 17 00:49:46 2012
+++ loncom/interface/statistics/lonstudentassessment.pm Fri Feb 17 21:44:11 2012
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.167 2012/02/17 00:49:46 droeschl Exp $
+# $Id: lonstudentassessment.pm,v 1.168 2012/02/17 21:44:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -838,9 +838,9 @@
if ($field eq 'comments') {
$title = '<a href="/adm/'.$student->{'domain'}.'/'.$student->{'username'}.'/'.'aboutme#coursecomment">'.&mt('Comments').'</a>';
}
+ utf8::decode($title);
my $base = length($title);
my $width=$Apache::lonstatistics::StudentData{$field}->{'width'};
- utf8::decode($title);
$Str .= $title.' 'x($width-$base).$padding;
}
# Get ALL the students data
More information about the LON-CAPA-cvs
mailing list