summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-03 17:25:44 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-03 17:25:44 (GMT)
commit3d5a04ab183d503808da7abf56c4b2ded67864d8 (patch)
treed91296c7d73b31c8911eb436e58d068dfc9cf71a /Doc
parentc4a19e7fe9e59c4f0bc0afda7f231366d1baf37c (diff)
downloadcpython-3d5a04ab183d503808da7abf56c4b2ded67864d8.zip
cpython-3d5a04ab183d503808da7abf56c4b2ded67864d8.tar.gz
cpython-3d5a04ab183d503808da7abf56c4b2ded67864d8.tar.bz2
do_cmd_moreargs(),
do_cmd_unspecified(): New functions to reflect previously unused markup. do_cmd_file(): Simplified generated markup to only make use of the existing stylesheet. do_cmd_makevar(): Make the markup more stylesheet-friendly.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/perl/python.perl12
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 6c0cddb..eb5c7c4 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -122,7 +122,8 @@ sub do_cmd_optional{
# \file and \samp are at the end of this file since they screw up fontlock.
sub do_cmd_pytype{ return @_[0]; }
-sub do_cmd_makevar{ return @_[0]; }
+sub do_cmd_makevar{
+ return use_wrappers(@_[0], '<span class="makevar">', '</span>'); }
sub do_cmd_code{
return use_wrappers(@_[0], '<code>', '</code>'); }
sub do_cmd_module{
@@ -169,9 +170,7 @@ sub do_cmd_dfn{
sub do_cmd_emph{
return use_italics(@_); }
sub do_cmd_file{
- return use_wrappers(@_[0],
- '<font class="file" face="sans-serif">',
- '</font>'); }
+ return use_wrappers(@_[0], '<span class="file">', '</span>'); }
sub do_cmd_filenq{
return do_cmd_file(@_[0]); }
sub do_cmd_samp{
@@ -185,6 +184,11 @@ sub do_cmd_textbf{
sub do_cmd_textit{
return use_wrappers(@_[0], '<i>', '</i>'); }
+sub do_cmd_moreargs{
+ return '...' . @_[0]; }
+sub do_cmd_unspecified{
+ return '...' . @_[0]; }
+
sub do_cmd_refmodule{
# Insert the right magic to jump to the module definition.