Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3a3ed8

Browse files
committed
Update @inc so we can 'require' modules in Doc/perl/.
Call the localmoduletable handling once the document is complete & synopses have been collected.
1 parent a0f4c94 commit b3a3ed8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/perl/l2hinit.perl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ package main;
4141
$mydir = getcwd() . "$dd$mydir"
4242
unless $mydir =~ s|^/|/|;
4343
$LATEX2HTMLSTYLES = "$mydir$envkey$LATEX2HTMLSTYLES";
44+
push (@INC, $mydir);
4445

4546
($myrootname, $myrootdir, $myext) = fileparse($mydir, '\..*');
4647
chop $myrootdir;
@@ -218,8 +219,9 @@ sub add_module_idx{
218219

219220
# replace both indexes as needed:
220221
sub add_idx_hook{
221-
&add_idx if (/$idx_mark/);
222-
&add_module_idx if (/$idx_module_mark/);
222+
add_idx() if (/$idx_mark/);
223+
add_module_idx() if (/$idx_module_mark/);
224+
process_all_localmoduletables();
223225
}
224226

225227

0 commit comments

Comments
 (0)