summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-16 22:50:06 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-16 22:50:06 (GMT)
commit06e1664c770bf2cb29c4a68b63f08ffb7efcbce1 (patch)
treea8961b9083ab213dd08b593610b9e21d478a19b8 /Doc
parent76183c0ed839a27ed6afdeb94ecabcf5b47c1091 (diff)
downloadcpython-06e1664c770bf2cb29c4a68b63f08ffb7efcbce1.zip
cpython-06e1664c770bf2cb29c4a68b63f08ffb7efcbce1.tar.gz
cpython-06e1664c770bf2cb29c4a68b63f08ffb7efcbce1.tar.bz2
Indent {verbatim} environments like in the printed version.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.perl7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/myformat.perl b/Doc/myformat.perl
index 7f3a843..13f929b 100644
--- a/Doc/myformat.perl
+++ b/Doc/myformat.perl
@@ -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) = ('', '', '', '');