]> granicus.if.org Git - python/commitdiff
By default, use a two-column index.
authorFred Drake <fdrake@acm.org>
Fri, 7 Aug 1998 19:52:37 +0000 (19:52 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 7 Aug 1998 19:52:37 +0000 (19:52 +0000)
Doc/perl/l2hinit.perl

index 2e11a50aa320f2f0231f1977935db3d2846aacf8..fd1c281c605d583204f707d299232e853ca73a16 100644 (file)
@@ -31,6 +31,9 @@ $BODYTEXT = 'bgcolor="#ffffff"';
 $CHILDLINE = "\n<p><hr>\n";
 $VERBOSITY = 0;
 
+# default # of columns for the index
+$INDEX_COLUMNS = 2;
+
 
 # A little painful, but lets us clean up the top level directory a little,
 # and not be tied to the current directory (as far as I can tell).
@@ -192,7 +195,7 @@ sub make_index_entry {
 
 sub insert_index{
     my($mark,$datafile) = @_;
-    my $index = `$myrootdir/tools/buildindex.py $datafile`;
+    my $index = `$myrootdir/tools/buildindex.py --columns $INDEX_COLUMNS $datafile`;
     s/$mark/$index/;
 }