[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface lontemplate.pm
raeburn
raeburn@source.lon-capa.org
Fri, 13 May 2011 19:45:28 -0000
raeburn Fri May 13 19:45:28 2011 EDT
Modified files: (Branch: version_2_10_X)
/loncom/interface lontemplate.pm
Log:
- Backport 1.45.
Index: loncom/interface/lontemplate.pm
diff -u loncom/interface/lontemplate.pm:1.43 loncom/interface/lontemplate.pm:1.43.4.1
--- loncom/interface/lontemplate.pm:1.43 Sun Jan 31 06:03:55 2010
+++ loncom/interface/lontemplate.pm Fri May 13 19:45:28 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "Template" Functions to generate html output
#
-# $Id: lontemplate.pm,v 1.43 2010/01/31 06:03:55 faziophi Exp $
+# $Id: lontemplate.pm,v 1.43.4.1 2011/05/13 19:45:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -181,8 +181,12 @@
&Apache::lontemplate::print_end_template($r);
} else {
my $safeinit;
- $r->print(&Apache::lonxml::xmlparse($r,'tex','<h3>'.$fields{$field}.'</h3>'));
- $r->print(&Apache::lonxml::xmlparse($r,'tex',$message));
+ if ($fields{$field}=~/\w/) {
+ $r->print(&Apache::lonxml::xmlparse($r,'tex','<h3>'.$fields{$field}.'</h3>'));
+ } else {
+ $r->print(&Apache::lonxml::xmlparse($r,'tex','<br />'));
+ }
+ $r->print(&Apache::lonxml::xmlparse($r,'tex',$message));
}
push(@html_ids,$field);
}