--- loncom/xml/scripttag.pm 2001/02/22 00:49:03 1.34 +++ loncom/xml/scripttag.pm 2001/03/27 18:19:29 1.36 @@ -131,7 +131,9 @@ sub start_window { my $result = ''; if ($target eq 'web') { &Apache::lonxml::startredirection; - } + } elsif ($target eq 'tex') { + $result = '\footnote{'; + } return $result; } @@ -141,9 +143,11 @@ sub end_window { if ($target eq 'web') { my $output=&Apache::lonxml::endredirection; $output =~ s/\"/\"\;/g; - $result = "newwindow $output \');newWindow.document.close();void(0);\">*"; + $result = "newwindow $output \');newWindow.document.close();void(0);\">*"; + } elsif ($target eq 'tex') { + $result = '}'; } else { - $result = ''; + $result = ''; } return $result; } @@ -199,8 +203,9 @@ sub editfield { map { $count++; if (length($_) > $maxlength) { $maxlength = length ($_); } } split ("\n", $data); - - return "
\n<$tag>
\n   
\n</$tag>
\n"; + if ($maxlength > 80) { $maxlength = 80; } + return "
\n   \n"; +# return "
\n<$tag>
\n   
\n</$tag>
\n"; } sub getfilenothere {