From: Fred Drake Date: Sun, 12 Apr 1998 02:16:34 +0000 (+0000) Subject: Added a simpler, working {verbatim} support that generates legitimate HTML. X-Git-Tag: v1.5.1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1072e4626397314b074a3bab8646bb132c215df0;p=python Added a simpler, working {verbatim} support that generates legitimate HTML. (2 lines, explained by 6 lines of comments....) --- diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index a73c227bf6..2fa29aff01 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -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
goes one the outside of the +#
...
. +# +# 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', '
', + %declarations); + 1; # This must be the last line