Re: New code

Matthias Wimmer <[email protected]> Mon, 07 Mar 2005 13:35:05 +0100
Newsgroups gmane.comp.web.cthumb.general
Message-ID <[email protected]>
Matthias Wimmer schrieb:
> Hi,
> 
> cthumb is a great program. But it does not work with album files that
> have been created with Windows. I made two changes to the code. This is
> sufficient for me but there might still be some more changes that have
> to be done.
> 
> best regards
> Matt
> 
> 
> line 395:
> 
>              if ($options[$i][1] eq "string" &&
>                  /^$pattern:\s*(.*)\s*?$/i) { # string w/o comment
> 
>                  # bimzzz changes
>                  my $stringValue = $1;
>                  while( $stringValue =~ /\r/ )
>                  {
>                      chop $stringValue;
>                      # print "chopped once: $stringValue \n";
>                  }
>                  eval "\$$options[$i][0] = \"$stringValue\"";
>                          last LOOP;
>              }
> 
> 
> 
> line 438:
> 
>      chomp $newtheme;
>      chomp $newthemedir;
> 
>      # bimzzz code: delete last character if it is newline: \r
>      while( $Theme =~ /\r$/){
>          chop $Theme;
>          # print "chopped once \n\n";
>      }
>      while( $newtheme =~ /\r$/){
>          chop $newtheme;
>          # print "chopped once \n\n";
>      }
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click