]> granicus.if.org Git - python/commitdiff
Added a simpler, working {verbatim} support that generates legitimate HTML.
authorFred Drake <fdrake@acm.org>
Sun, 12 Apr 1998 02:16:34 +0000 (02:16 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 12 Apr 1998 02:16:34 +0000 (02:16 +0000)
(2 lines, explained by 6 lines of comments....)

Doc/perl/l2hinit.perl

index a73c227bf6eafb15a3894867a93c0e934c83895d..2fa29aff0194b12f8cdbf3757e3a802bb17acde6 100644 (file)
@@ -307,4 +307,15 @@ sub protect_useritems {
     $_ = $preitems . $_;
 }
 
+# This changes the markup used for {verbatim} environments, and is the
+# best way I've found that ensures the <dl> goes one the outside of the
+# <pre>...</pre>.
+#
+# Note that this *must* be done in the init file, not the python.perl
+# style support file.  The %declarations must be set before initialize()
+# is called in the main script.
+#
+%declarations = ('preform', '<dl><dd><pre></pre></dl>',
+                %declarations);
+
 1;     # This must be the last line