Ignore:
Timestamp:
2006-03-21T15:08:25+12:00 (18 years ago)
Author:
mdewsnip
Message:

Some fixes for greenstone XML files that I forgot to commit earlier :-(

File:
1 edited

Legend:

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

    r11366 r11447  
    11941194    if ($line =~ /^\s*<Text id=\"(.*?)\">/) {
    11951195        my $chunk_key = $1;
    1196         $line =~ s/\s*([^\\]\#[^\}]+)?$//;  # Remove any comments and nasty whitespace
     1196        $line =~ s/\s*$//;  # Remove any nasty whitespace
    11971197
    11981198        # While there is still text of the string to go...
     
    12041204        }
    12051205        $line = $file_lines[$i];
    1206         $line =~ s/\s*([^\\]\#[^\}]+)?$//;  # Remove any comments and nasty whitespace
     1206        $line =~ s/\s*$//;  # Remove any nasty whitespace
    12071207        }
    12081208
     
    12211221
    12221222    # Simple: just remove the Text tags
    1223     $chunk_text =~ s/^\s*<Text .*id=\"(.*?)\".*?>(\s*)//;
     1223    $chunk_text =~ s/^\s*<Text id=\"(.*?)\">(\s*)//;
    12241224    $chunk_text =~ s/<\/Text>$//;
    12251225
Note: See TracChangeset for help on using the changeset viewer.