Kaydet (Commit) 06e1664c authored tarafından Fred Drake's avatar Fred Drake

Indent {verbatim} environments like in the printed version.

üst 76183c0e
...@@ -280,6 +280,13 @@ sub make_str_index_entry{ ...@@ -280,6 +280,13 @@ sub make_str_index_entry{
"<a name=\"$br_id\">$str<\/a>"; "<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{ sub do_env_cfuncdesc{
local($_) = @_; local($_) = @_;
local($return_type,$function_name,$arg_list,$idx) = ('', '', '', ''); local($return_type,$function_name,$arg_list,$idx) = ('', '', '', '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment