[LON-CAPA-cvs] cvs: rat / lonpage.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 26 Jun 2002 20:28:30 -0000
www Wed Jun 26 16:28:30 2002 EDT
Modified files:
/rat lonpage.pm
Log:
Bug 123
Inserts \hline or <hr /> after end of ssi-import depending on course
environment variable pageseparators (shown if "yes").
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.40 rat/lonpage.pm:1.41
--- rat/lonpage.pm:1.40 Thu Jun 20 13:47:35 2002
+++ rat/lonpage.pm Wed Jun 26 16:28:30 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.40 2002/06/20 17:47:35 sakharuk Exp $
+# $Id: lonpage.pm,v 1.41 2002/06/26 20:28:30 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -450,6 +450,15 @@
$r->print($ssibody{$rid});
unless ($target eq 'tex') {
$r->print('</font>');
+ }
+ if ($ENV{'course.'.
+ $ENV{'request.course.id'}.
+ '.pageseparators'} eq 'yes') {
+ unless($target eq 'tex') {
+ $r->print('<hr />');
+ } else {
+ $r->print('\hline');
+ }
}
} elsif ($cellemb{$rid} eq 'img') {
$r->print('>'.$metainfo.'<img src="'.