]> granicus.if.org Git - python/commitdiff
Indent {verbatim} environments like in the printed version.
authorFred Drake <fdrake@acm.org>
Mon, 16 Feb 1998 22:50:06 +0000 (22:50 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 16 Feb 1998 22:50:06 +0000 (22:50 +0000)
Doc/myformat.perl

index 7f3a84333a66d8acdae5eedadc3b0fac67820833..13f929b2d6f3659066c7333b500264776c90cb08 100644 (file)
@@ -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) = ('', '', '', '');