Subject: | since upgrade index not created |
Hi,
We moved our app from an old machine to a new one and all our generated
html pages from the pod changed. We no longer get the nice index (linked
table of contents) even though we set the index option.
I think I tracked this down to a change in HTMLBatch.pm which in our
working copy (3.05) does this:
# Give each class a chance to init the converter:
$page->batch_mode_page_object_init($self, $module, $infile, $outfile,
$depth)
if $page->can('batch_mode_page_object_init');
$self->batch_mode_page_object_init($page, $module, $infile, $outfile,
$depth)
if $self->can('batch_mode_page_object_init');
and in 3.10 does this:
# Give each class a chance to init the converter:
$page->batch_mode_page_object_init($self, $module, $infile, $outfile,
$depth)
if $page->can('batch_mode_page_object_init');
Adding the second line from 3.05 fixes the problem.
FYI, this is what we were doing:
perl '-MPod::Simple::HTMLBatch' '-e' 'Pod::Simple::HTMLBatch::go' 'lib'
'../../../../public_html/BET'
but I tried long handed like the following too:
use Pod::Simple::HTMLBatch;
my $bc = Pod::Simple::HTMLBatch->new();
$bc->verbose(5);
$bc->index(1);
$bc->no_contents_links(0);
$bc->css_flurry(1);
$bc->batch_convert("lib", "../../../../public_html/BET");
Martin
--
Martin J. Evans
Wetherby, UK