Dave Storrs <[EMAIL PROTECTED]> writes:

> But whenever I try that, it tells me that it "could not resolve link"
> and spits up (instead of a link, I just get <EM> tags).  I poked at the
> source a bit and then wrote the following patch to Pod::Html.pm, but it
> seems like I'm probably missing something.  Is there a better way to do
> this?

The problem that you're running into is that pod2html in the Perl
distribution needs some serious loving attention.  It's currently quite a
bit behind the curve compared to pod2text or pod2man.

I've been tempted a few times to write a new one for my own purposes, as
none of the other POD to HTML translators out there quite do what I want,
but as there are already something like four of them, I've held off since
it feels like a waste of energy.  Parsing POD into HTML can require
different techniques than the translators I've already written and is
better suited for a tree-style parse, and there are apparently new POD
parsers coming up that will make that easier.

In the meantime, if you're just trying to convert your own documents, I'd
poke around in CPAN and try one of the other POD to HTML translators and
see if they work better.  If you're trying to get things working for
people who are just using the version that comes with Perl, you may be out
of luck for the time being, but with any luck a better converter will be
in the next release of Perl.  (It's possible people fixed some things for
5.8.0, but I'm pretty sure that pod2html is still rather behind the
curve.)

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to