[LON-CAPA-cvs] cvs: loncom /interface loncoursedata.pm

matthew lon-capa-cvs@mail.lon-capa.org
Thu, 21 Aug 2003 21:03:38 -0000


matthew		Thu Aug 21 17:03:38 2003 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  Bug 2065: colons in sequence names become :  This does not address
  the problem sufficiently in the future, but it does address the problem
  for existing data.
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.83 loncom/interface/loncoursedata.pm:1.84
--- loncom/interface/loncoursedata.pm:1.83	Thu Aug  7 13:26:44 2003
+++ loncom/interface/loncoursedata.pm	Thu Aug 21 17:03:38 2003
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: loncoursedata.pm,v 1.83 2003/08/07 17:26:44 bowersj2 Exp $
+# $Id: loncoursedata.pm,v 1.84 2003/08/21 21:03:38 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -158,6 +158,7 @@
             }
             # get the map itself, instead of BEGIN_MAP
             $title = $previous->title();
+            $title =~ s/\:/\&\#058;/g;
             $symb  = $previous->symb();
             $src   = $previous->src();
             # pick up the filename if there is no title available
@@ -186,6 +187,7 @@
         next if (! $curRes->is_problem());# && !$curRes->randomout);
         # Okay, from here on out we only deal with assessments
         $title = $curRes->title();
+        $title =~ s/\:/\&\#058;/g;
         $symb  = $curRes->symb();
         $src   = $curRes->src();
         my $parts = $curRes->parts();