[Python-checkins] python/dist/src/Doc/perl l2hinit.perl,1.61,1.62 python.perl,1.121,1.122

fdrake@sourceforge.net fdrake@sourceforge.net
Mon, 15 Apr 2002 11:41:33 -0700


Update of /cvsroot/python/python/dist/src/Doc/perl
In directory usw-pr-cvs1:/tmp/cvs-serv5084/perl

Modified Files:
	l2hinit.perl python.perl 
Log Message:
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).


Index: l2hinit.perl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/perl/l2hinit.perl,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** l2hinit.perl	5 Apr 2002 17:34:50 -0000	1.61
--- l2hinit.perl	15 Apr 2002 18:41:29 -0000	1.62
***************
*** 578,582 ****
  # before style files are loaded).
  #
! %declarations = ('preform' => '<dl><dd><pre class="verbatim"></pre></dl>',
  		 %declarations);
  
--- 578,582 ----
  # before style files are loaded).
  #
! %declarations = ('preform' => '<div class="verbatim"><pre></pre></div>',
  		 %declarations);
  

Index: python.perl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/perl/python.perl,v
retrieving revision 1.121
retrieving revision 1.122
diff -C2 -d -r1.121 -r1.122
*** python.perl	15 Apr 2002 17:46:00 -0000	1.121
--- python.perl	15 Apr 2002 18:41:29 -0000	1.122
***************
*** 1916,1921 ****
  
  
! $alltt_start = '<dl><dd><pre class="verbatim">';
! $alltt_end = '</pre></dl>';
  
  sub do_env_alltt {
--- 1916,1921 ----
  
  
! $alltt_start = '<div class="verbatim"><pre>';
! $alltt_end = '</pre></div>';
  
  sub do_env_alltt {
***************
*** 2009,2018 ****
          $text = '<b>Could not locate requested file <i>$fname</i>!</b>\n';
      }
!     return ('<dl><dd><pre class="verbatim">'
              . $text
!             . "</pre>\n<div class=\"verbatiminput-footer\">\n"
              . "<a href=\"$srcname.txt\" type=\"text/plain\""
              . ">Download as text.</a>"
!             . "\n</div>\n</dd></dl>"
              . $_);
  }
--- 2009,2018 ----
          $text = '<b>Could not locate requested file <i>$fname</i>!</b>\n';
      }
!     return ("<div class=\"verbatim\">\n<pre>"
              . $text
!             . "</pre>\n<div class=\"footer\">\n"
              . "<a href=\"$srcname.txt\" type=\"text/plain\""
              . ">Download as text.</a>"
!             . "\n</div></div>"
              . $_);
  }