
From D.J.Adams@soton.ac.uk Thu Jun  8 08:38:02 2000
Date: Thu, 8 Jun 2000 12:46:36 +0100 (BST)
From: D.J.Adams@soton.ac.uk
To: htdig@htdig.org
Subject: [htdig] Patch for doc2html.pl

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.
