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

Skip to content

Commit aa3f9fb

Browse files
committed
By default, use a two-column index.
1 parent 7cbf462 commit aa3f9fb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/perl/l2hinit.perl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ package main;
3131
$CHILDLINE = "\n<p><hr>\n";
3232
$VERBOSITY = 0;
3333

34+
# default # of columns for the index
35+
$INDEX_COLUMNS = 2;
36+
3437

3538
# A little painful, but lets us clean up the top level directory a little,
3639
# and not be tied to the current directory (as far as I can tell).
@@ -192,7 +195,7 @@ sub make_index_entry {
192195

193196
sub insert_index{
194197
my($mark,$datafile) = @_;
195-
my $index = `$myrootdir/tools/buildindex.py $datafile`;
198+
my $index = `$myrootdir/tools/buildindex.py --columns $INDEX_COLUMNS $datafile`;
196199
s/$mark/$index/;
197200
}
198201

0 commit comments

Comments
 (0)