Changeset 1728 for trunk


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

Minor change so that leading whitespace is skipped when grabbing the title.
This means that if there is no text on the first couple of lines, we can
still take the first found text as the title.

File:
1 edited

Legend:

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

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