[LON-CAPA-cvs] cvs: loncom /interface lonspreadsheet.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Thu, 24 Oct 2002 15:34:11 -0000
matthew Thu Oct 24 11:34:11 2002 EDT
Modified files:
/loncom/interface lonspreadsheet.pm
Log:
Fixed bug in csv output of parameters (assessment sheet) which caused every
parameter to have the name '1'. Someone might have complained....
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.126 loncom/interface/lonspreadsheet.pm:1.127
--- loncom/interface/lonspreadsheet.pm:1.126 Thu Oct 24 11:30:25 2002
+++ loncom/interface/lonspreadsheet.pm Thu Oct 24 11:34:10 2002
@@ -1,5 +1,5 @@
#
-# $Id: lonspreadsheet.pm,v 1.126 2002/10/24 15:30:25 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.127 2002/10/24 15:34:10 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1641,10 +1641,9 @@
}
} elsif ($type eq 'parameter') {
if ($ENV{'form.showcsv'}) {
- $result = $labeldata =~ s/<br>//g;
- } else {
- $result = $labeldata;
+ $labeldata =~ s/<br>/ /g;
}
+ $result = $labeldata;
} else {
&Apache::lonnet::logthis("lonspreadsheet:bogus rowlabel type: $type");
}