[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstudentassessment.pm
droeschl
droeschl at source.lon-capa.org
Thu Feb 16 19:49:46 EST 2012
droeschl Fri Feb 17 00:49:46 2012 EDT
Modified files:
/loncom/interface/statistics lonstudentassessment.pm
Log:
Bug #6244. Misalignment of names column in course assessment progress chart
if name contains special characters. Fixed by converting the byte sequence
to a utf character sequence. See perldoc utf8 for details.
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.166 loncom/interface/statistics/lonstudentassessment.pm:1.167
--- loncom/interface/statistics/lonstudentassessment.pm:1.166 Thu Dec 22 00:28:11 2011
+++ loncom/interface/statistics/lonstudentassessment.pm Fri Feb 17 00:49:46 2012
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.166 2011/12/22 00:28:11 www Exp $
+# $Id: lonstudentassessment.pm,v 1.167 2012/02/17 00:49:46 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -840,6 +840,7 @@
}
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