Kaydet (Commit) ae3a15c3 authored tarafından Fred Drake's avatar Fred Drake

Make the HTML more XHTML-friendly.

Small nits in the layout of the generated markup.
üst 31edf4de
...@@ -161,53 +161,53 @@ platform they are available on.</p> ...@@ -161,53 +161,53 @@ platform they are available on.</p>
""" """
NAVIGATION = """\ NAVIGATION = '''\
<div class=navigation> <div class="navigation">
<table width="100%%" cellpadding=0 cellspacing=2> <table width="100%%" cellpadding="0" cellspacing="2">
<tr> <tr>
<td><img width=32 height=32 align=bottom border=0 alt="" <td><img width="32" height="32" align="bottom" border="0" alt=""
src="%(iconserver)s/blank.%(imgtype)s"></td> src="%(iconserver)s/blank.%(imgtype)s"></td>
<td><a href="%(uplink)s" <td><a href="%(uplink)s"
title="%(uptitle)s"><img width=32 height=32 align=bottom border=0 title="%(uptitle)s"><img width="32" height="32" align="bottom" border="0"
alt="%(uplinkalt)s" alt="%(uplinkalt)s"
src="%(iconserver)s/%(uplinkicon)s.%(imgtype)s"></a></td> src="%(iconserver)s/%(uplinkicon)s.%(imgtype)s"></a></td>
<td><img width=32 height=32 align=bottom border=0 alt="" <td><img width="32" height="32" align="bottom" border="0" alt=""
src="%(iconserver)s/blank.%(imgtype)s"></td> src="%(iconserver)s/blank.%(imgtype)s"></td>
<td align=center bgcolor="#99CCFF" width="100%%"> <td align="center" bgcolor="#99CCFF" width="100%%">
<b class=title>%(title)s</b></td> <b class="title">%(title)s</b></td>
<td><img width=32 height=32 align=bottom border=0 alt="" <td><img width="32" height="32" align="bottom" border="0" alt=""
src="%(iconserver)s/blank.%(imgtype)s"></td> src="%(iconserver)s/blank.%(imgtype)s"></td>
<td><img width=32 height=32 align=bottom border=0 alt="" <td><img width="32" height="32" align="bottom" border="0" alt=""
src="%(iconserver)s/blank.%(imgtype)s"></td> src="%(iconserver)s/blank.%(imgtype)s"></td>
<td><img width=32 height=32 align=bottom border=0 alt="" <td><img width="32" height="32" align="bottom" border="0" alt=""
src="%(iconserver)s/blank.%(imgtype)s"></td> src="%(iconserver)s/blank.%(imgtype)s"></td>
</tr></table> </tr></table>
<b class=navlabel>Up:</b> <span class=sectref><a href="%(uplink)s" <b class="navlabel">Up:</b> <span class="sectref"><a href="%(uplink)s"
title="%(uptitle)s">%(uptitle)s</A></span> title="%(uptitle)s">%(uptitle)s</A></span>
<br></div> <br></div>
""" '''
HEAD = """\ HEAD = '''\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <html>
<head> <head>
<title>Global Module Index</title> <title>Global Module Index</title>
<meta name="description" content="%(title)s"> <meta name="description" content="%(title)s">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib/lib.css"> <link rel="STYLESHEET" href="lib/lib.css">
</head> </head>
<body bgcolor=white> <body bgcolor=white>
""" + NAVIGATION + """\ ''' + NAVIGATION + '''\
<hr> <hr>
<h2>%(title)s</h2> <h2>%(title)s</h2>
""" '''
TAIL = "<hr>\n" + NAVIGATION + """\ TAIL = "<hr>\n" + NAVIGATION + '''\
%(address)s</body> %(address)s</body>
</html> </html>
""" '''
if __name__ == "__main__": if __name__ == "__main__":
main() main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment