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

Skip to content

Commit aaa2385

Browse files
committed
When there is a Module Index, make sure the icon actually links to it.
1 parent 4dfad57 commit aaa2385

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/perl/l2hinit.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,9 @@ sub add_bbl_and_idx_dummy_commands {
437437
. "([\\\\]begin\\s*$O\\d+$C\\s*theindex)";
438438
s/$rx/\\textohtmlmoduleindex \1 \\textohtmlindex \2/o;
439439
# Add a button to the navigation areas:
440-
$CUSTOM_BUTTONS .= $my_icons{'modules'};
440+
$CUSTOM_BUTTONS .= ('<a href="modindex.html" title="Module Index">'
441+
. $my_icons{'modules'}
442+
. '</a>');
441443
}
442444
else {
443445
$CUSTOM_BUTTONS .= $BLANK_ICON;

0 commit comments

Comments
 (0)