Indent {verbatim} environments like in the printed version.

This commit is contained in:
Fred Drake 1998-02-16 22:50:06 +00:00
parent 76183c0ed8
commit 06e1664c77
1 changed files with 7 additions and 0 deletions

View File

@ -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) = ('', '', '', '');