Remove leading and trailing spaces and tabs
[openssl.git] / util / extract-names.pl
index d413a04..744a8e2 100644 (file)
@@ -9,8 +9,10 @@ while(<STDIN>) {
     } elsif ($name) {
        if (/ - /) {
            s/ - .*//;
-           s/[ \t,]+/ /g;
-           push @words, split ' ';
+           s/,[ \t]+/,/g;
+           s/^[ \t]+//g;
+           s/[ \t]+$//g;
+           push @words, split ',';
        }
     }
     if (/^=head1 *NAME *$/) {