mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Added a simpler, working {verbatim} support that generates legitimate HTML.
(2 lines, explained by 6 lines of comments....)
This commit is contained in:
parent
b73bc31e39
commit
1072e46263
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue