mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Indent {verbatim} environments like in the printed version.
This commit is contained in:
parent
76183c0ed8
commit
06e1664c77
1 changed files with 7 additions and 0 deletions
|
@ -280,6 +280,13 @@ sub make_str_index_entry{
|
|||
"<a name=\"$br_id\">$str<\/a>";
|
||||
}
|
||||
|
||||
# Changed from the stock version to indent {verbatim} sections:
|
||||
sub replace_verbatim {
|
||||
# Modifies $_
|
||||
s/$verbatim_mark(verbatim)(\d+)/<dl><dd><pre>$verbatim{$2}<\/pre><\/dl>/go;
|
||||
s/$verbatim_mark(rawhtml)(\d+)/$verbatim{$2}/ego; # Raw HTML
|
||||
}
|
||||
|
||||
sub do_env_cfuncdesc{
|
||||
local($_) = @_;
|
||||
local($return_type,$function_name,$arg_list,$idx) = ('', '', '', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue