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).
This commit is contained in:
Fred Drake 2002-04-15 18:41:31 +00:00
parent eeb5ec42e0
commit 8a5e6790d9
3 changed files with 10 additions and 8 deletions

View file

@ -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>"
. $_);
}