--- loncom/homework/structuretags.pm 2002/04/25 18:58:04 1.91
+++ loncom/homework/structuretags.pm 2002/11/07 16:10:47 1.133
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.91 2002/04/25 18:58:04 albertel Exp $
+# $Id: structuretags.pm,v 1.133 2002/11/07 16:10:47 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -29,10 +29,12 @@
# 6/26/2001 fixed extra web display at end of tags
# 8/17,8/18,8/20 Gerd Kortemeyer
+
package Apache::structuretags;
use strict;
use Apache::lonnet;
+use Apache::File();
BEGIN {
&Apache::lonxml::register('Apache::structuretags',('block','while','randomlist','problem','library','web','tex','part','preduedate','postanswerdate','solved','notsolved','startouttext','endouttext'));
@@ -56,7 +58,7 @@ sub start_tex {
my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
my $bodytext=&Apache::lonxml::get_all_text("/tex",$$parser[$#$parser]);
if ($target eq 'tex') {
- return $bodytext
+ return $bodytext.' ';
}
return '';
}
@@ -100,7 +102,75 @@ sub page_start {
}
$body_tag_start.='>';
}
- return ($result,$head_tag_start,$body_tag_start);
+ my $form_tag_start;
+ if (!defined($found{'form'})) {
+ $form_tag_start='