Changeset 2452


Ignore:
Timestamp:
2001-05-21T18:01:42+12:00 (23 years ago)
Author:
jrm21
Message:

-title_sub works now -- previously had a leading "--" argument, which means
stop processing arguments....

File:
1 edited

Legend:

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

    r1954 r2452  
    3737sub new {
    3838    my $class = shift (@_);
    39      
    40     my $self = new ConvertToPlug ($class, @_, "--", "-title_sub", 'Page\s+\d+');
     39
     40    # following title_sub removes "Page 1" added by pdftohtml, and a leading
     41    # "1", which is often the page number at the top of the page. Bad Luck
     42    # if your document title actually starts with "1 " - is there a better way?
     43
     44    my $self = new ConvertToPlug ($class, @_, "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
    4145   
    4246    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.