mirror of https://github.com/python/cpython
Indent {verbatim} environments like in the printed version.
This commit is contained in:
parent
76183c0ed8
commit
06e1664c77
|
@ -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…
Reference in New Issue