diff options
author | Fred Drake <fdrake@acm.org> | 2002-04-15 18:41:31 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-04-15 18:41:31 (GMT) |
commit | 8a5e6790d959cac49ab66cf4973b6ab6c3f397fd (patch) | |
tree | 96cb87290b85f8e467cea324bede4aca848fc47f /Doc/perl | |
parent | eeb5ec42e03f7de46d60cfd547bc083071cb5745 (diff) | |
download | cpython-8a5e6790d959cac49ab66cf4973b6ab6c3f397fd.zip cpython-8a5e6790d959cac49ab66cf4973b6ab6c3f397fd.tar.gz cpython-8a5e6790d959cac49ab66cf4973b6ab6c3f397fd.tar.bz2 |
Clean up the application of style to verbatim text.
This moves styling to the stylesheet; the use of <dl> structures to control
style sometimes produced improper indentation of subsequent text in many
browsers when the text was already part of the <dl> structure (as in a
function or class description).
Diffstat (limited to 'Doc/perl')
-rw-r--r-- | Doc/perl/l2hinit.perl | 2 | ||||
-rw-r--r-- | Doc/perl/python.perl | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index b7ade49..da371bd 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -577,7 +577,7 @@ sub set_depth_levels { # initialize() is called in the main LaTeX2HTML script (which happens # before style files are loaded). # -%declarations = ('preform' => '<dl><dd><pre class="verbatim"></pre></dl>', +%declarations = ('preform' => '<div class="verbatim"><pre></pre></div>', %declarations); diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl index 5da9710..e8a4d47 100644 --- a/Doc/perl/python.perl +++ b/Doc/perl/python.perl @@ -1915,8 +1915,8 @@ withsubitem # {} # {} _RAW_ARG_DEFERRED_CMDS_ -$alltt_start = '<dl><dd><pre class="verbatim">'; -$alltt_end = '</pre></dl>'; +$alltt_start = '<div class="verbatim"><pre>'; +$alltt_end = '</pre></div>'; sub do_env_alltt { local ($_) = @_; @@ -2008,12 +2008,12 @@ sub do_cmd_verbatiminput{ else { $text = '<b>Could not locate requested file <i>$fname</i>!</b>\n'; } - return ('<dl><dd><pre class="verbatim">' + return ("<div class=\"verbatim\">\n<pre>" . $text - . "</pre>\n<div class=\"verbatiminput-footer\">\n" + . "</pre>\n<div class=\"footer\">\n" . "<a href=\"$srcname.txt\" type=\"text/plain\"" . ">Download as text.</a>" - . "\n</div>\n</dd></dl>" + . "\n</div></div>" . $_); } |