Changeset 27742

Show
Ignore:
Timestamp:
03.07.2013 20:52:42 (6 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

Files:
1 modified

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*$/.../;