Changeset 13318


Ignore:
Timestamp:
2006-11-24T09:47:44+13:00 (17 years ago)
Author:
mdewsnip
Message:

Now removes all whitespace from the empty line between the chunks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti-process-spreadsheet.pl

    r13296 r13318  
    6060    $excel_txt_file_data =~ s/\r//g;
    6161
    62     # Make sure the first line is where we want it, and remove all stray tabs
     62    # Make sure the first line is where we want it, and remove all stray whitespace
    6363    $excel_txt_file_data =~ s/^(\n)*/\n\n/;
    64     $excel_txt_file_data =~ s/\n\t\n/\n\n/g;
     64    $excel_txt_file_data =~ s/\n(\s*)\n/\n\n/g;
    6565
    6666    # Split into chunks
     
    7272    my $total_number_of_chunks = ($excel_txt_file_data =~ s/source::/source::/g);
    7373    if (scalar(@chunks) != $total_number_of_chunks) {
    74     die "Error: Expected $total_number_of_chunks chunks but only have " . scalar(@chunks) . " from splitting.";
     74    die "Error: Expected $total_number_of_chunks chunks but only have " . scalar(@chunks) . " from splitting";
    7575    }
    7676
Note: See TracChangeset for help on using the changeset viewer.