Changeset 30709
- Timestamp:
- 2016-08-15T19:50:20+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/gti.pl
r30687 r30709 1654 1654 my ($chunk_text) = @_; 1655 1655 1656 $chunk_text =~ s/\\:/ESCAPEDCOLONTEMP/g; # an escaped colon "\:" should only occur in the chunk_key portion of the line 1656 $chunk_text =~ s/\\:/ESCAPEDCOLONTEMP/g; # an escaped colon "\:" should only occur in the chunk_key portion of the line. 1657 # But it seems to occur in chunk text too now (before http:\\) in dictionary.properties. 1657 1658 1658 1659 # Simple: just remove string key 1659 1660 $chunk_text =~ s/^(\S+?)[:|=](\s*)//s; 1661 1662 if($chunk_key =~ m/ESCAPEDCOLONTEMP/) { # put back the escaped colons 1663 $chunk_key =~ s/ESCAPEDCOLONTEMP/\\:/g; 1664 } 1665 1660 1666 $chunk_text =~ s/(\s*)$//s; # Remove any nasty whitespace, carriage returns etc. 1661 1667 $chunk_text =~ s/(\s*)\#\s+Updated\s+(\d?\d-\D\D\D-\d\d\d\d.*)\s*$//is;
Note:
See TracChangeset
for help on using the changeset viewer.