[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 02 Dec 2002 17:15:07 -0000
albertel Mon Dec 2 12:15:07 2002 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- Fixes bug#1011 discussion was being printed out multiple times in SUBM
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.139 loncom/homework/structuretags.pm:1.140
--- loncom/homework/structuretags.pm:1.139 Mon Nov 25 16:19:45 2002
+++ loncom/homework/structuretags.pm Mon Dec 2 12:15:07 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.139 2002/11/25 21:19:45 albertel Exp $
+# $Id: structuretags.pm,v 1.140 2002/12/02 17:15:07 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -426,15 +426,15 @@
$result.="</body>\n";
}
}
- if ($target ne 'tex') {
+ if ($target eq 'web') {
$result.=&Apache::lonxml::xmlend();
- } else {
- $result .= '\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}';
- if (not $ENV{'request.symb'} =~ m/\.page_/) {
- $result .= '\end{minipage}\end{document} ';
- } else {
- $result .= '';
- }
+ } elsif ($target eq 'tex') {
+ $result .= '\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}';
+ if (not $ENV{'request.symb'} =~ m/\.page_/) {
+ $result .= '\end{minipage}\end{document} ';
+ } else {
+ $result .= '';
+ }
}
}
if ($target eq 'grade') {