[htdig] Patch for doc2html.pl


Subject: [htdig] Patch for doc2html.pl
From: D.J.Adams@soton.ac.uk
Date: Thu Jun 08 2000 - 04:46:36 PDT


Here is a second attempt to send the path for doc2html.pl.

The error is that the line

  $cmdl = "$cmd '$Input' | $ED 's#^<TITLE>$Input</TITLE>#<TITLE>[$Name]</TITLE>#";

should read:

  $cmdl = "$cmd '$Input' | $ED 's#^<TITLE>$Input</TITLE>#<TITLE>[$Name]</TITLE>#'";

And the patch is:

*** doc2html.pl.err Thu Jun 8 11:41:16 2000
--- doc2html.pl Tue May 30 14:21:25 2000
***************
*** 136,142 ****
    if ((defined $RTF2HTML) and (length $RTF2HTML)) {
      $cmd = $RTF2HTML;
      # Rtf2html uses filename as title, change this:
! $cmdl = "$cmd '$Input' | $ED 's#^<TITLE>$Input</TITLE>#<TITLE>[$Name]</TITLE>#";
      $magic = '^{\134rtf';
      &store_html_method('RTF',$cmd,$cmdl,$magic);
    }
--- 136,142 ----
    if ((defined $RTF2HTML) and (length $RTF2HTML)) {
      $cmd = $RTF2HTML;
      # Rtf2html uses filename as title, change this:
! $cmdl = "$cmd '$Input' | $ED 's#^<TITLE>$Input</TITLE>#<TITLE>[$Name]</TITLE>#'";
      $magic = '^{\134rtf';
      &store_html_method('RTF',$cmd,$cmdl,$magic);
    }

-- 
 
David J Adams
<D.J.Adams@soton.ac.uk>
Computing Services
University of Southampton

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Thu Jun 08 2000 - 02:36:37 PDT