[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm

www lon-capa-cvs@mail.lon-capa.org
Fri, 21 May 2004 20:17:57 -0000


www		Fri May 21 16:17:57 2004 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  Better fix for Bug #154
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.168 loncom/publisher/lonpublisher.pm:1.169
--- loncom/publisher/lonpublisher.pm:1.168	Fri May 21 16:01:15 2004
+++ loncom/publisher/lonpublisher.pm	Fri May 21 16:17:56 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.168 2004/05/21 20:01:15 www Exp $
+# $Id: lonpublisher.pm,v 1.169 2004/05/21 20:17:56 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1378,8 +1378,8 @@
             $allkeywords .= ','.$ENV{'form.keywords'};
         }
     }
-    $allkeywords=~s/[\;\,]/\,/;
     $allkeywords=~s/[\"\']//g;
+    $allkeywords=~s/\s*[\;\,]\s*/\,/;
     $allkeywords=~s/\s+/ /g;
     $allkeywords=~s/^[ \,]//;
     $allkeywords=~s/[ \,]$//;