Changeset 8300 in genesis


Ignore:
Timestamp:
Aug 10, 2010, 2:09:28 PM (15 years ago)
Author:
rick
Message:

Whitespaces in beginnings and ends are evil get rid of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified nodes/genesis-to-yaml.pl

    r8294 r8300  
    8484    foreach $line  (split('\n',$config{$if})) {
    8585        ($key, $value) = split(/=/,$line);
     86        # Remove trailing and leading white spaces
     87        $value =~ s/^\s+//;
     88        $value =~ s/\s+$//;
    8689        if ($key and (lc($key) =~ /^[a-z].*/)) {
    8790            #print "$key : $value\n";
Note: See TracChangeset for help on using the changeset viewer.