summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-10 17:47:14 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-10 17:47:14 (GMT)
commitadb272ceeed1fe6e2af2e51982c305066cec7244 (patch)
tree8fa65cdeb1376a363544bc008032f8ac0d993145 /Doc/perl
parent6e277cf7deb76ec83e8fe67ee78e9d9cb7977814 (diff)
downloadcpython-adb272ceeed1fe6e2af2e51982c305066cec7244.zip
cpython-adb272ceeed1fe6e2af2e51982c305066cec7244.tar.gz
cpython-adb272ceeed1fe6e2af2e51982c305066cec7244.tar.bz2
do_cmd_datalineni(): New function, to implement the non-indexing form
of \dataline.
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/python.perl6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 6b67df5..c6306dc 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -773,6 +773,12 @@ sub do_cmd_dataline{
return "<dt><b>$idx</b><dd>" . $_;
}
+sub do_cmd_datalineni{
+ local($_) = @_;
+ my $data_name = next_argument();
+ return "<dt><b><tt>$data_name</tt></b><dd>" . $_;
+}
+
sub do_env_excdesc{
local($_) = @_;
my $excname = next_argument();