From: Fred Drake Date: Fri, 26 Oct 2001 03:09:27 +0000 (+0000) Subject: Add yet more markup that let's a stylesheet pick out a small bit of the X-Git-Tag: v2.2.1c1~1047 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af07b2c34fe4166fdb13b9b08e53148034c1318f;p=python Add yet more markup that let's a stylesheet pick out a small bit of the presentation. This is acceptable since it only occurs in the formatted output and does not affect the document markup. --- diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 10dcdd0c00..54a92c5d06 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -868,6 +868,10 @@ sub get_refcount{ return $REFCOUNTS{"$func:$param"}; } + +$TLSTART = ''; +$TLEND = ''; + sub do_env_cfuncdesc{ local($_) = @_; my $return_type = next_argument(); @@ -1047,7 +1051,10 @@ sub do_env_excdesc{ local($_) = @_; my $excname = next_argument(); my $idx = make_str_index_entry("$excname"); - return "
exception $idx\n
" . $_ . '
' + return ("
${TLSTART}exception$TLEND $idx" + . "\n
" + . $_ + . '
'); } sub do_env_fulllineitems{ return do_env_itemize(@_); } @@ -1060,7 +1067,8 @@ sub handle_classlike_descriptor{ $idx = make_str_index_entry( "$THIS_CLASS ($what in $THIS_MODULE)" ); $idx =~ s/ \(.*\)//; - return ("
$what $idx($arg_list)\n
" + return ("
$TLSTART$what$TLEND $idx" + . "($arg_list)\n
" . $_ . '
'); } @@ -1075,7 +1083,7 @@ sub do_env_classdescstar{ $idx = make_str_index_entry( "$THIS_CLASS (class in $THIS_MODULE)"); $idx =~ s/ \(.*\)//; - return ("
class $idx\n
" + return ("
${TLSTART}class$TLEND $idx\n
" . $_ . '
'); }