]> granicus.if.org Git - python/commitdiff
&make_mod_index_entry: Wrap a long comment, store the additional data needed
authorFred Drake <fdrake@acm.org>
Tue, 13 Jan 1998 04:05:11 +0000 (04:05 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 13 Jan 1998 04:05:11 +0000 (04:05 +0000)
to create a module index in the HTML version.

Doc/myformat.perl

index 261cd0513715aff7a552f9b0c7e30f959472de67..15f7adf5b12825e2c07bf0ec9c52a736326c8f97 100644 (file)
@@ -155,12 +155,17 @@ sub my_parword_index_helper{
 
 sub make_mod_index_entry {
     local($br_id,$str,$define) = @_;
-    # If TITLE is not yet available (i.e the \index command is in the title of the
-    # current section), use $ref_before.
+    local($halfref) = &make_half_href("$CURRENT_FILE#$br_id");
+    # If TITLE is not yet available (i.e the \index command is in the title
+    # of the current section), use $ref_before.
     $TITLE = $ref_before unless $TITLE;
     # Save the reference
+    if ($define eq "DEF") {
+       local($nstr,$garbage) = split / /, $str, 2;
+       $Modules{$nstr} .= $halfref;
+    }
     $str = &gen_index_id($str, $define);
-    $index{$str} .= &make_half_href("$CURRENT_FILE#$br_id");
+    $index{$str} .= $halfref;
     "<a name=\"$br_id\">$anchor_invisible_mark<\/a>";
 }