Changeset 10464


Ignore:
Timestamp:
2005-08-10T15:37:08+12:00 (19 years ago)
Author:
chi
Message:

Modifications of the if loop condition in convertPPT() to allow the different
types of convert_to can be dealt with properly.

File:
1 edited

Legend:

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

    r10451 r10464  
    260260   
    261261    my $success = 0;
    262    
     262 
    263263    # Attempt simple conversion to HTML
    264264    if (!$output_type || ($output_type =~ /html/i)) {
     
    340340
    341341    my $ppt_convert_type = "";
    342     if (!$output_type || $windows_scripting ||($output_type !~ /html/i)){
     342    #if (!$output_type || $windows_scripting ||($output_type !~ /html/i) ||($output_type !~ /text/i)){
     343    if ($windows_scripting && ($output_type !~ /html/i) && ($output_type !~ /text/i)){
    343344    if ($output_type =~ /gif/i) {
    344345        $ppt_convert_type = "-g";
     
    368369        }
    369370    }
    370     } else {
     371    } elsif (!$output_type || ($output_type =~ /html/i)) {
    371372    # Attempt conversion to HTML
    372373    #if (!$output_type || ($output_type =~ /html/i)) {
     
    386387        return "html";
    387388    }
    388     }
     389    } 
    389390
    390391    $success = &any_to_text($input_filename, $output_filestem);
     
    392393    return "text";
    393394    }
    394 
     395   
    395396    return "fail";
    396397}
     
    11681169      return 0;
    11691170    }
    1170 
     1171   
    11711172    open(IN, "<$input_filename") || return 0;
    11721173    binmode(IN);
Note: See TracChangeset for help on using the changeset viewer.