diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-10 21:17:04 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-10 21:17:04 (GMT) |
commit | 2e1ee3eb1973553712ef839e53b2247b01cb2412 (patch) | |
tree | e034681a2d6f36af42f12b90e7d6b0b1fafc1706 /Doc | |
parent | 72e5a901c2b18b9a683f12bd053dfbd927ef4e1d (diff) | |
download | cpython-2e1ee3eb1973553712ef839e53b2247b01cb2412.zip cpython-2e1ee3eb1973553712ef839e53b2247b01cb2412.tar.gz cpython-2e1ee3eb1973553712ef839e53b2247b01cb2412.tar.bz2 |
Fix up some routines to coordinate the "indexsubitem" stuff so that
the subitem text is updated correctly when each module section is
processed.
Print [<modulename>] when we start on \declaremodule so we can more
easily track progress during the library reference.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/perl/python.perl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 48cf0dd..0452b1f 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -238,8 +238,7 @@ sub get_indexsubitem{ sub do_cmd_setindexsubitem{ local($_) = @_; - my $subitem = next_argument(); - $INDEX_SUBITEM = $subitem; + $INDEX_SUBITEM = next_argument(); return $_; } @@ -406,6 +405,8 @@ sub make_mod_index_entry{ my($str,$define) = @_; my($name,$aname,$ahref) = new_link_info(); # equivalent of add_index_entry() using $define instead of '' + $ahref =~ s/\#[-_a-zA-Z0-9]*\"/\"/ + if ($define eq 'DEF'); $str = gen_index_id($str, $define); $index{$str} .= $ahref; write_idxfile($ahref, $str); @@ -426,6 +427,8 @@ sub define_module{ my $section_tag = join('', @curr_sec_id); $word = "$word " if $word; $THIS_MODULE = "$name"; + $INDEX_SUBITEM = "(in $name)"; + print "[$name]"; return make_mod_index_entry("<tt>$name</tt> (${word}module)", 'DEF'); } @@ -491,8 +494,7 @@ sub do_env_cfuncdesc{ . get_indexsubitem()); $idx =~ s/ \(.*\)//; $idx =~ s/\(\)//; # ???? - return "<dl><dt>$return_type <b>$idx</b>" - . "(<var>$arg_list</var>)\n<dd>" + return "<dl><dt>$return_type <b>$idx</b> (<var>$arg_list</var>)\n<dd>" . $_ . '</dl>'; } @@ -1024,7 +1026,12 @@ sub do_cmd_term{ process_commands_wrap_deferred(<<_RAW_ARG_DEFERRED_CMDS_); code # {} +declaremodule # [] # {} # {} +memberline # [] # {} +methodline # [] # {} # {} +modulesynopsis # {} samp # {} +setindexsubitem # {} _RAW_ARG_DEFERRED_CMDS_ |