[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 02 Feb 2004 17:28:53 -0000
sakharuk Mon Feb 2 12:28:53 2004 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
Bug 2681 (If you rename resources in docs to a name with # in it, printing stops working for students) is fixed by adding additional &Apache::lonxml::latex_special_symbols() call.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.230 loncom/homework/structuretags.pm:1.231
--- loncom/homework/structuretags.pm:1.230 Fri Jan 30 11:21:26 2004
+++ loncom/homework/structuretags.pm Mon Feb 2 12:28:53 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.230 2004/01/30 16:21:26 albertel Exp $
+# $Id: structuretags.pm,v 1.231 2004/02/02 17:28:53 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -37,6 +37,7 @@
use Apache::File();
use Apache::lonmenu;
use Apache::lonlocal;
+use Apache::lonxml;
BEGIN {
&Apache::lonxml::register('Apache::structuretags',('block','languageblock','instructorcomment','while','randomlist','problem','library','web','tex','part','preduedate','postanswerdate','solved','notsolved','startouttext','endouttext',
@@ -475,7 +476,7 @@
my @due_file_content = <$temp_file>;
my $due_file_content = $due_file_content[$#due_file_content];
chomp $due_file_content;
- my $name_of_resourse= &get_resource_name($parstack,$safeeval);
+ my $name_of_resourse= &Apache::lonxml::latex_special_symbols(&get_resource_name($parstack,$safeeval));
if ($due_file_content ne $duedate) {
$temp_file = Apache::File->new('>'.$filename);
print $temp_file "$duedate\n";