--- loncom/homework/structuretags.pm 2002/06/25 14:50:53 1.98
+++ loncom/homework/structuretags.pm 2002/06/27 18:47:23 1.100
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.98 2002/06/25 14:50:53 sakharuk Exp $
+# $Id: structuretags.pm,v 1.100 2002/06/27 18:47:23 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -283,16 +283,16 @@ sub start_problem {
$result.=$head_tag_start.
"
$name\n$body_tag_start\n";
}
- } elsif ($target eq 'tex') {
- my $id = $Apache::inputtags::part;
- my $duedate = &Apache::lonnet::EXT("resource.$id.duedate");
- $duedate = POSIX::strftime("%c",localtime($duedate));
- if (not $ENV{'request.symb'} =~ m/\.page_/) {
- $result .= '\begin{document} \noindent\fbox{Due date: '.$duedate.'} \\vskip 1 mm';
- } else {
- $result .= '\begin{minipage}{\minipagewidth} ';
- }
- }
+ } elsif ($target eq 'tex') {
+ my $id = $Apache::inputtags::part;
+ my $duedate = &Apache::lonnet::EXT("resource.$id.duedate");
+ $duedate = POSIX::strftime("%c",localtime($duedate));
+ if (not $ENV{'request.symb'} =~ m/\.page_/) {
+ $result .= '\begin{document} \noindent\fbox{Due date: '.$duedate.'} \vskip 1 mm';
+ } else {
+ $result .= '\parbox{\minipagewidth}{\vskip 1mm\fbox{Due date: '.$duedate.'} \\\\\\\\';
+ }
+ }
} elsif ($target eq 'edit') {
$result.=$head_tag_start."".$body_tag_start.
'