Ignore:
Timestamp:
2009-01-19T18:08:49+13:00 (15 years ago)
Author:
ak19
Message:

Modified srcreplaceable plugins (plugins which operate on docs where the source file can be replaced with their converted htmls) to set the file_rename_method to none for secondary plugins (for Text, HTML, and PagedImage plugins) so that the file is not renamed several times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ExcelPlugin.pm

    r15918 r18406  
    7373    $secondary_plugin_options->{'HTMLPlugin'} = [];
    7474    }
     75    if (!defined $secondary_plugin_options->{'TextPlugin'}) {
     76    $secondary_plugin_options->{'TextPlugin'} = [];
     77    }
    7578    my $html_options = $secondary_plugin_options->{'HTMLPlugin'};
    76    
     79    my $text_options = $secondary_plugin_options->{'TextPlugin'};
     80
    7781    push(@$html_options, "-input_encoding", "utf8");
    7882    push(@$html_options,"-extract_language") if $self->{'extract_language'};
     83    push(@$html_options, "-file_rename_method", "none");
     84   
     85    push(@$text_options, "-input_encoding", "utf8");
     86    push(@$text_options,"-extract_language") if $self->{'extract_language'};
     87    push(@$text_options, "-file_rename_method", "none");
     88
    7989    $self = bless $self, $class;
    8090   
Note: See TracChangeset for help on using the changeset viewer.