Changeset 11927 for trunk/cic-hcap


Ignore:
Timestamp:
2006-06-16T13:46:30+12:00 (18 years ago)
Author:
mdewsnip
Message:

Now throws errors on multiline function values (which were causing some problems), and deals with nested parentheses in function values better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/perllib/plugins/CICPlug.pm

    r11926 r11927  
    539539        next;
    540540        }
     541        # Check for multiline values (these are errors)
     542        if ($place_function =~ /\n/) {
     543        print STDERR "<ProcessingError n='Place $place_id' p='CICPlug' r='Multiline function'>\n" if ($self->{'gli'});
     544        print STDERR "Error: Place $place_id -- Multiline function.\n";
     545        print $fail_log_handle "Error: Place $place_id -- Multiline function.\n";
     546        next;
     547        }
    541548        my $place_year = $place_functions_match_hashref->{"Year"};
    542549        if (!defined($place_year)) {
     
    551558
    552559        # Create place functions mapping
    553         $place_function =~ s/\(.*?\)//g;
     560        $place_function =~ s/\(.*\)//g;
    554561        $place_function =~ s/^\s*//;
    555562        $place_function =~ s/\s*$//;
Note: See TracChangeset for help on using the changeset viewer.