[Python-checkins] CVS: python/dist/src/Doc/tools mkmodindex,1.5,1.6

Fred L. Drake python-dev@python.org
Thu, 7 Sep 2000 13:07:44 -0700


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26614/tools

Modified Files:
	mkmodindex 
Log Message:

Make the HTML more XHTML-friendly.
Small nits in the layout of the generated markup.


Index: mkmodindex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkmodindex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** mkmodindex	2000/04/03 04:19:14	1.5
--- mkmodindex	2000/09/07 20:07:41	1.6
***************
*** 162,212 ****
  """
  
! NAVIGATION = """\
! <div class=navigation>
! <table width="100%%" cellpadding=0 cellspacing=2>
  <tr>
! <td><img width=32 height=32 align=bottom border=0 alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
  <td><a href="%(uplink)s"
!  title="%(uptitle)s"><img width=32 height=32 align=bottom border=0
   alt="%(uplinkalt)s"
   src="%(iconserver)s/%(uplinkicon)s.%(imgtype)s"></a></td>
! <td><img width=32 height=32 align=bottom border=0 alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td align=center bgcolor="#99CCFF" width="100%%">
!  <b class=title>%(title)s</b></td>
! <td><img width=32 height=32 align=bottom border=0 alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td><img width=32 height=32 align=bottom border=0 alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td><img width=32 height=32 align=bottom border=0 alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
  </tr></table>
! <b class=navlabel>Up:</b> <span class=sectref><a href="%(uplink)s"
   title="%(uptitle)s">%(uptitle)s</A></span>
  <br></div>
! """
  
! HEAD = """\
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <html>
  <head>
! <title>Global Module Index</title>
! <meta name="description" content="%(title)s">
! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
! <link rel="STYLESHEET" href="lib/lib.css">
  </head>
  <body bgcolor=white>
! """ + NAVIGATION + """\
  <hr>
  
  <h2>%(title)s</h2>
  
! """
  
! TAIL = "<hr>\n" + NAVIGATION + """\
  %(address)s</body>
  </html>
! """
  
  if __name__ == "__main__":
--- 162,212 ----
  """
  
! NAVIGATION = '''\
! <div class="navigation">
! <table width="100%%" cellpadding="0" cellspacing="2">
  <tr>
! <td><img width="32" height="32" align="bottom" border="0" alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
  <td><a href="%(uplink)s"
!  title="%(uptitle)s"><img width="32" height="32" align="bottom" border="0"
   alt="%(uplinkalt)s"
   src="%(iconserver)s/%(uplinkicon)s.%(imgtype)s"></a></td>
! <td><img width="32" height="32" align="bottom" border="0" alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td align="center" bgcolor="#99CCFF" width="100%%">
!  <b class="title">%(title)s</b></td>
! <td><img width="32" height="32" align="bottom" border="0" alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td><img width="32" height="32" align="bottom" border="0" alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
! <td><img width="32" height="32" align="bottom" border="0" alt=""
   src="%(iconserver)s/blank.%(imgtype)s"></td>
  </tr></table>
! <b class="navlabel">Up:</b> <span class="sectref"><a href="%(uplink)s"
   title="%(uptitle)s">%(uptitle)s</A></span>
  <br></div>
! '''
  
! HEAD = '''\
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <html>
  <head>
!   <title>Global Module Index</title>
!   <meta name="description" content="%(title)s">
!   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
!   <link rel="STYLESHEET" href="lib/lib.css">
  </head>
  <body bgcolor=white>
! ''' + NAVIGATION + '''\
  <hr>
  
  <h2>%(title)s</h2>
  
! '''
  
! TAIL = "<hr>\n" + NAVIGATION + '''\
  %(address)s</body>
  </html>
! '''
  
  if __name__ == "__main__":