summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-13 17:06:34 (GMT)
committerFred Drake <fdrake@acm.org>1999-01-13 17:06:34 (GMT)
commit2581704dfa339e586d6e3cc3b1abcf5bbebb4dfc (patch)
tree9e4a9c915d85614bbc6bf5b13ea9d09c1a5f31b5 /Doc
parentb5600e7cb97811252550c1aa61c06b82352f0528 (diff)
downloadcpython-2581704dfa339e586d6e3cc3b1abcf5bbebb4dfc.zip
cpython-2581704dfa339e586d6e3cc3b1abcf5bbebb4dfc.tar.gz
cpython-2581704dfa339e586d6e3cc3b1abcf5bbebb4dfc.tar.bz2
do_cmd_refmodule(): New function to support new \refmodule macro.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/perl/python.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index ff0bd88..d982f56 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -148,6 +148,16 @@ sub do_cmd_samp{ return use_wrappers(@_[0], '"<tt>', '</tt>"'); }
sub do_cmd_kbd{ return use_wrappers(@_[0], '<kbd>', '</kbd>'); }
sub do_cmd_strong{ return use_wrappers(@_[0], '<b>', '</b>'); }
+sub do_cmd_refmodule{
+ # Insert the right magic to jump to the module definition.
+ local($_) = @_;
+ my $key = next_optional_argument();
+ my $module = next_argument();
+ $key = $module
+ unless $key;
+ return "<tt><a href=\"module-$key.html\">$module</a></tt>" . $_;
+}
+
sub do_cmd_newsgroup{
local($_) = @_;
my $newsgroup = next_argument();