Changeset 1729


Ignore:
Timestamp:
2000-11-30T18:17:08+13:00 (23 years ago)
Author:
jrm21
Message:

title regexp should have started "\s*", not "\s+" - it's optional whitespace!

File:
1 edited

Legend:

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

    r1728 r1729  
    6363    # in from another plugin)
    6464    if (!defined $metadata->{'Title'}) {
    65     my ($title) = $$textref =~ /^\s+([^\n]*)/;
     65    my ($title) = $$textref =~ /^\s*([^\n]*)/;
     66    print STDERR "Title: ^$title^\n";
    6667    if (length($title) > 100) {
    6768        $title = substr ($title, 0, 100);
Note: See TracChangeset for help on using the changeset viewer.