Changeset 17983


Ignore:
Timestamp:
11/28/08 19:29:16 (12 years ago)
Author:
ak19
Message:

Wvware inserts a comment at the end of the HTML it generates which contains urls that Greenstone replaces with macros. When the macros are expanded by GS, the wvWare comment breaks and the resulting HTML is ugly. This comment has been removed in order to prevent the page from breaking when the page is served by the Greenstone server.

File:
1 edited

Legend:

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

    r17927 r17983  
    666666    $file =~ s@(\\)+@/@g;
    667667    }
     668
     669    # Any document converted by wvWare into HTML tends to have a certain comment inserted
     670    # by wvware at the end of the HTML it generated. This comment contains urls that
     671    # Greenstone replaces with macros, which then break the comment when the macros are
     672    # expanded. The result is that the HTML displayed in the Greenstone browser is ugly.
     673    # Therefore, we remove wvWare's insertion here.
     674    $$textref =~ s/<!--\n(?:.*?)Document created with(?:.*?)wvware(?:.*?)-->//s;
    668675   
    669676    # reset per-doc stuff...
Note: See TracChangeset for help on using the changeset viewer.