[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
foxr
lon-capa-cvs@mail.lon-capa.org
Mon, 20 Nov 2006 11:01:51 -0000
foxr Mon Nov 20 06:01:51 2006 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
Bug 4446 - really ensure that the first problem in anon and
nonanon mode will have the same amount of vertical space
prior to the problem text itself... on the principle that
it is best to be consistent.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.491 loncom/interface/lonprintout.pm:1.492
--- loncom/interface/lonprintout.pm:1.491 Thu Nov 2 16:06:06 2006
+++ loncom/interface/lonprintout.pm Mon Nov 20 06:01:50 2006
@@ -2,7 +2,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.491 2006/11/02 21:06:06 albertel Exp $
+# $Id: lonprintout.pm,v 1.492 2006/11/20 11:01:50 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1979,9 +1979,9 @@
my $printed = '';
my ($username,$userdomain,$usersection) = split /:/,$person;
my $fullname = &get_name($username,$userdomain);
- my $namepostfix;
+ my $namepostfix = "\\\\"; # Both anon and not anon should get the same vspace.
if ($person =~ 'anon') {
- $namepostfix="\\\\Name: ";
+ $namepostfix .="Name: ";
$fullname = "CODE - ".$moreenv->{'CODE'};
}
# Fullname may have special latex characters that need \ prefixing: