diff options
author | Fred Drake <fdrake@acm.org> | 1998-04-12 02:16:34 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-04-12 02:16:34 (GMT) |
commit | 1072e4626397314b074a3bab8646bb132c215df0 (patch) | |
tree | a82cde8098cfde54a52f022df3fccc1cc09877f4 /Doc/perl | |
parent | b73bc31e398ff07b5a1661f3f0a418989717fd98 (diff) | |
download | cpython-1072e4626397314b074a3bab8646bb132c215df0.zip cpython-1072e4626397314b074a3bab8646bb132c215df0.tar.gz cpython-1072e4626397314b074a3bab8646bb132c215df0.tar.bz2 |
Added a simpler, working {verbatim} support that generates legitimate HTML.
(2 lines, explained by 6 lines of comments....)
Diffstat (limited to 'Doc/perl')
-rw-r--r-- | Doc/perl/l2hinit.perl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index a73c227..2fa29af 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 <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 |