Changeset 27742


Ignore:
Timestamp:
2013-07-03T20:52:42+12:00 (11 years ago)
Author:
ak19
Message:

Remove Windows carriage returns when Greenstone assigns titles, where it can't extract any, to ensure that titles of pdftohtml docs are consistent (the same 100 chars) across windows and linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/HTMLPlugin.pm

    r27703 r27742  
    14081408        $title =~ s/<\/([^>]+)><\1>//g; # (eg) </b><b> - no space
    14091409        $title =~ s/<[^>]*>/ /g; # remove all HTML tags
     1410        $title =~ s@\r@@g; # remove Windows carriage returns to ensure that titles of pdftohtml docs are consistent (the same 100 chars) across windows and linux
    14101411        $title = substr ($title, 0, 100);
    14111412        $title =~ s/\s\S*$/.../;
Note: See TracChangeset for help on using the changeset viewer.