Changeset 3507


Ignore:
Timestamp:
2002-10-29T17:50:25+13:00 (22 years ago)
Author:
jrm21
Message:

updated to also allow '..."foo" ...' as the enclosing quotes (for multi-line)
as this seems to have been previously allowed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/cfgread.pm

    r3506 r3507  
    4040    $line =~ s/^\s+//;     # remove initial white space
    4141    # Merge with following line if a quoted phrase is left un-closed.
    42     if ($line =~ m/[^\\]\"/) {
    43         while ($line !~ m/\"(.*?[^\\])?\"/) {
     42    if ($line =~ m/[^\\]([\"\'])/) {
     43        my $quote=$1;
     44        while ($line !~ m/$quote(.*?[^\\])?$quote/) {
    4445        my $nextline = <$handle>;
    4546        if (defined($nextline)) {
Note: See TracChangeset for help on using the changeset viewer.