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

www lon-capa-cvs@mail.lon-capa.org
Thu, 08 Jun 2006 14:29:21 -0000


www		Thu Jun  8 10:29:21 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  Get rid of extra space if there is no course code
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.379 loncom/interface/loncommon.pm:1.380
--- loncom/interface/loncommon.pm:1.379	Mon Jun  5 18:05:09 2006
+++ loncom/interface/loncommon.pm	Thu Jun  8 10:29:21 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.379 2006/06/05 22:05:09 albertel Exp $
+# $Id: loncommon.pm,v 1.380 2006/06/08 14:29:21 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2899,6 +2899,7 @@
                                  '.domain'}.'/'})) {
         my $cid = $env{'request.course.id'};
         $dc_info.= $cid.' '.$env{'course.'.$cid.'.internal.coursecode'};
+        $dc_info =~ s/\s+$//;
         $dc_info = '('.$dc_info.')';
     }