Changeset 3669


Ignore:
Timestamp:
2003-01-14T09:02:15+13:00 (21 years ago)
Author:
jrm21
Message:

need to protect variable in s/ in case it has special chars in it (such as

  • . ( [ )
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gimp/title_icon-1.2.pl

    r3408 r3669  
    386386    while (length ($text) >= $wrap_length) {
    387387    my $line = substr ($text, 0, $wrap_length);
    388     $text =~ s/^$line//;
     388    $text =~ s/^\Q$line\E//;
    389389    $line =~ s/\s([^\s]*)$/\n/;
    390390    $text = $1 . $text;
Note: See TracChangeset for help on using the changeset viewer.