Author: arkurth
Date: Mon Jun  1 16:43:08 2009
New Revision: 780714

URL: http://svn.apache.org/viewvc?rev=780714&view=rev
Log:
Made a minor change to utils.pm::notify(). I changed the regex which removes 
spaces from the beginning and end of each line of log output to only remove 
them from the end. It was causing output which is supposed to display a tree 
structure to be displayed poorly.

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/utils.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=780714&r1=780713&r2=780714&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Mon Jun  1 16:43:08 2009
@@ -703,8 +703,11 @@
        # Remove any spaces from the beginning or end of the string
        $string =~ s/(^\s+)|(\s+$)//gs;
        
-       # Remove any spaces from the beginning or end of the each line
-       $string =~ s/\s*\n\s*/\n/gs;
+       ## Remove any spaces from the beginning of each line
+       #$string =~ s/\n[ \t]+/\n/gs;
+       
+       # Remove any spaces from the end of each line
+       $string =~ s/[ \t]+\n/\n/gs;
        
        # Replace consecutive spaces with a single space to keep log file 
concise as long as string doesn't contain a quote
        if ($string !~ /[\'\"]/gs) {


Reply via email to